1
1
mirror of https://github.com/tstack/lnav.git synced 2024-11-04 00:54:17 +03:00

add 're-' prefix to data_scanner

This commit is contained in:
Timothy Stack 2015-08-21 07:00:47 -07:00
parent feaff13b13
commit 0fee92b08f
2 changed files with 19806 additions and 19378 deletions

File diff suppressed because it is too large Load Diff

View File

@ -203,7 +203,7 @@ bool data_scanner::tokenize2(pcre_context &pc, data_token_t &token_out)
[a-zA-Z0-9\._%+-]+"@"[a-zA-Z0-9\.-]+"."[a-zA-Z]+ { RET(DT_EMAIL); }
("true"|"True"|"TRUE"|"false"|"False"|"FALSE"|"None"|"null"|"NULL") { RET(DT_CONSTANT); }
[a-zA-Z][a-z']+/([\r\n\t \(\)!\*:;'\"\?,]|[\.\!,\?]SPACE|EOF) { RET(DT_WORD); }
("re-")?[a-zA-Z][a-z']+/([\r\n\t \(\)!\*:;'\"\?,]|[\.\!,\?]SPACE|EOF) { RET(DT_WORD); }
[^\x00"; \t\r\n:=,\(\)\{\}\[\]\+#!@%\^&\*'\?<>\~`\|\\]+("::"[^\x00"; \r\n\t:=,\(\)\{\}\[\]\+#!@%\^&\*'\?<>\~`\|\\]+)* {
RET(DT_SYMBOL);