Added a partial fix to regex, started improving the krakenGrammer regexes
This commit is contained in:
@@ -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-~]|[+-.]| |
|
||||
)/*\**)+\*/)|(/\*\*/)" ;
|
||||
|
||||
Reference in New Issue
Block a user