Added a partial fix to regex, started improving the krakenGrammer regexes

This commit is contained in:
Nathan Braswell
2016-05-10 00:40:46 -04:00
parent 9d7a65294f
commit 4d31ca8b0f
2 changed files with 8 additions and 5 deletions

View File

@@ -157,7 +157,7 @@ numeric = "[0-9]+" ;
string = triple_quoted_string | "\"(`|[0-9]|-|=| |[a-z]|\[|]|(\\\\)|(\\n)|(\\t)|(\\\*)|(\\0)|;|'|
|,|.|/|~|!|@|#|$|%|^|&|\*|\(|\)|_|\+|[A-Z]|{|}|\||:|<|>|\?| |(\\\"))*\"" ;
comment = cpp_comment | c_comment ;
cpp_comment = "//(`|[0-9]|-|=| |[a-z]|\[|]|\\|;|'|,|.|/|~|!|@|#|$|%|^|&|\*|\(|\)|_|\+|[A-Z]|{|}|\||:|\"|<|>|\?| )*
cpp_comment = "//[ -~]*
" ;
c_comment = "(/\*/*\**((`|[0-9]|-|=| |[a-z]|\[|]|\\|;|'|
|,|.|~|!|@|#|$|%|^|&|\(|\)|_|\+|[A-Z]|{|}|\||:|\"|<|>|\?| )/*\**)+\*/)|(/\*\*/)" ;
c_comment = "(/\*/*\**(([ -)]|[0-~]|[+-.]| |
)/*\**)+\*/)|(/\*\*/)" ;