Add negative integers
This commit is contained in:
parent
26b6891160
commit
57b38c01c0
5 changed files with 225 additions and 96 deletions
|
|
@ -36,7 +36,7 @@ module.exports = grammar({
|
|||
// The Blueprint scanner makes use of Go's lexer, so copy their rule
|
||||
identifier: (_) => /[_\p{XID_Start}][_\p{XID_Continue}]*/,
|
||||
|
||||
integer_literal: (_) => /[0-9]+/,
|
||||
integer_literal: (_) => seq(optional("-"), /[0-9]+/),
|
||||
|
||||
// }}}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue