mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: add escaping for near
, far
and huge
keyword ptrs (#16463)
This commit is contained in:
parent
886abcdf59
commit
44e2149baa
@ -25,7 +25,7 @@ const (
|
||||
'long', 'malloc', 'namespace', 'new', 'nil', 'panic', 'register', 'restrict', 'return',
|
||||
'short', 'signed', 'sizeof', 'static', 'string', 'struct', 'switch', 'typedef', 'typename',
|
||||
'union', 'unix', 'unsigned', 'void', 'volatile', 'while', 'template', 'true', 'small',
|
||||
'stdout', 'stdin', 'stderr']
|
||||
'stdout', 'stdin', 'stderr', 'far', 'near', 'huge']
|
||||
c_reserved_chk = token.new_keywords_matcher_from_array_trie(c_reserved)
|
||||
// same order as in token.Kind
|
||||
cmp_str = ['eq', 'ne', 'gt', 'lt', 'ge', 'le']
|
||||
|
Loading…
Reference in New Issue
Block a user