mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
CGrammar: Anchor reserved rule to prevent prefix matching
This commit is contained in:
parent
1e2caf2bea
commit
0b941bf771
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 663,
|
BUILD_REVISION => 664,
|
||||||
BUILD_DATE => "2014-06-20",
|
BUILD_DATE => "2014-06-20",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1444,9 +1444,9 @@ string:
|
|||||||
/(?:\"(?:\\\"|(?!\").)*\")/
|
/(?:\"(?:\\\"|(?!\").)*\")/
|
||||||
|
|
||||||
reserved:
|
reserved:
|
||||||
'int' | 'double' | 'short' | 'volatile' | 'register' | 'float' | 'signed'
|
('int' | 'double' | 'short' | 'volatile' | 'register' | 'float' | 'signed'
|
||||||
| 'unsigned' | 'char' | 'for' | 'if' | 'switch' | 'while' | 'do' | 'case'
|
| 'unsigned' | 'char' | 'for' | 'if' | 'switch' | 'while' | 'do' | 'case'
|
||||||
| 'extern' | 'void' | 'exit' | 'return' | 'auto' | 'break' | 'const'
|
| 'extern' | 'void' | 'exit' | 'return' | 'auto' | 'break' | 'const'
|
||||||
| 'continue' | 'default' | 'else' | 'enum' | 'struct' | 'goto' | 'long'
|
| 'continue' | 'default' | 'else' | 'enum' | 'struct' | 'goto' | 'long'
|
||||||
| 'register' | 'sizeof' | 'static' | 'typedef' | 'union'
|
| 'register' | 'sizeof' | 'static' | 'typedef' | 'union') /\z/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user