Skip to content

Commit

Permalink
Add LHS number support
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-archer committed Jan 31, 2024
1 parent 4079c78 commit a71cbe0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion syntaxes/paradox.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@
"end": "(?![\\w:|$@])",
"contentName": "meta.id.paradox.non-comparable.non-prefixed",
"patterns": [
{
"comment": "Numbers",
"match": "\\b\\d+\\b",
"name": "constant.numeric.paradox"
},
{
"comment": "LHS boolean operators",
"match": "(?i)\\b(or|and|not|nor|nand)\\b",
Expand Down Expand Up @@ -174,7 +179,7 @@
},
{
"comment": "A RHS number, either integer or float, positive or negative",
"match": "-?(?:(?:[0-9]+(?:\\.[0-9]+)?%?)|(?:\\.[0-9]+))",
"match": "-?(?:(?:\\d+(?:\\.\\d+)?%?)|(?:\\.\\d+))",
"name": "constant.numeric.paradox"
}
]
Expand Down

0 comments on commit a71cbe0

Please sign in to comment.