Skip to content

Commit c7aca74

Browse files
Fix matching for DelVar and logical operations
Co-Authored-By: Nice Zombies <nineteendo19d0@gmail.com>
1 parent 007a452 commit c7aca74

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the "ti-basic" extension will be documented in this file.
44

5+
## [0.2.1] - 2023-12-11
6+
7+
### Fixed
8+
9+
- Fix matching for DelVar and logical operations with code suggested by [nineteendo](https://github.com/nineteendo)
10+
511
## [0.2.0] - 2023-03-08
612

713
### Added

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ti-basic",
33
"displayName": "TI-BASIC",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"description": "Syntax highlighting for z80 TI-BASIC",
66
"author": {
77
"name": "TIny_Hacker",

syntaxes/ti-basic.tmLanguage.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,21 @@
3636
},
3737
{
3838
"name": "keyword.control.8xp",
39-
"match": "(?<=[^a-z]|Ans)DelVar(?=[^a-zA-Z]|$)"
39+
"match": "(?<=[^a-z]|Ans|^)DelVar(?=[^a-zA-Z]|$)"
4040
}
4141
]
4242
},
4343
"operators": {
44-
"name": "keyword.operator.8xp",
45-
"match": "(\\+|-|\\*|/|\\^|\\\\((.*)\\)->|→|=|!=|≠|>|>=|≥|<|<=|≤|and|or|xor|not)"
44+
"patterns": [
45+
{
46+
"name": "keyword.operator.8xp",
47+
"match": "(\\+|-|\\*|/|\\^|\\\\((.*)\\)->|→|=|!=|≠|>|>=|≥|<|<=|≤)"
48+
},
49+
{
50+
"name": "keyword.operator.logical.8xp",
51+
"match": "\\b(and|or|not|xor)\\b"
52+
}
53+
]
4654
},
4755
"numbers": {
4856
"name": "constant.numeric.8xp",

0 commit comments

Comments
 (0)