3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

CGrammar: Anchor reserved rule to prevent prefix matching

This commit is contained in:
Pragmatic Software 2014-06-21 02:01:38 +00:00
parent 1e2caf2bea
commit 0b941bf771
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 663,
BUILD_REVISION => 664,
BUILD_DATE => "2014-06-20",
};

View File

@ -1444,9 +1444,9 @@ string:
/(?:\"(?:\\\"|(?!\").)*\")/
reserved:
'int' | 'double' | 'short' | 'volatile' | 'register' | 'float' | 'signed'
('int' | 'double' | 'short' | 'volatile' | 'register' | 'float' | 'signed'
| 'unsigned' | 'char' | 'for' | 'if' | 'switch' | 'while' | 'do' | 'case'
| 'extern' | 'void' | 'exit' | 'return' | 'auto' | 'break' | 'const'
| 'continue' | 'default' | 'else' | 'enum' | 'struct' | 'goto' | 'long'
| 'register' | 'sizeof' | 'static' | 'typedef' | 'union'
| 'register' | 'sizeof' | 'static' | 'typedef' | 'union') /\z/