X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a74a3158d47827616b2d5fc282b7ad4bf69c4261..4d24ffb75ebfc7c4fae027e23132c6d3630998b5:/src/scan-code.l diff --git a/src/scan-code.l b/src/scan-code.l index e30bf9db..31b44298 100644 --- a/src/scan-code.l +++ b/src/scan-code.l @@ -98,11 +98,12 @@ ref -?[0-9]+|{id}|"["{id}"]"|"$" int braces_level = 0; /* Whether a semicolon is probably needed. - The heuristic is that a semicolon is not needed after '{', '}', ';', - or a C preprocessor directive, and that whitespaces and comments - do not affect this flag. - Note that '{' does not need a semicolon because of '{}'. - A semicolon may be needed before a cpp direcive, but don't bother. */ + + The heuristic is that a semicolon is not needed after '{', '}', + ';', or a C preprocessor directive, and that whitespaces and + comments do not affect this flag. Note that '{' does not need a + semicolon because of '{}'. A semicolon may be needed before a + cpp directive, but don't bother. */ bool need_semicolon = false; /* Whether in a C preprocessor directive. Don't use a start condition @@ -160,7 +161,8 @@ ref -?[0-9]+|{id}|"["{id}"]"|"$" } -{ + +{ "'" { STRING_GROW; BEGIN SC_CHARACTER;