Skip to content

Commit 4cc1cc3

Browse files
committed
feat(lsp): add constant syntax highlighting in object definition data files
1 parent e96f888 commit 4cc1cc3

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

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

33
All notable changes to GameScript will be documented in this file.
44

5+
## [1.4.1]
6+
7+
### Added
8+
- Constant syntax highlighting (`^`) in object definition data files
9+
510
## [1.4.0]
611

712
### Added

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<GameScriptVersion>1.4.0</GameScriptVersion>
3+
<GameScriptVersion>1.4.1</GameScriptVersion>
44
</PropertyGroup>
55
</Project>

GameScript.VisualStudio/Grammars/objectdef.tmLanguage

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

105105
<key>patterns</key>
106106
<array>
107+
<dict>
108+
<key>name</key>
109+
<string>variable.other.constant.objectdef</string>
110+
<key>match</key>
111+
<string>\^[A-Za-z_]\w*</string>
112+
</dict>
107113
<dict>
108114
<key>name</key>
109115
<string>string.unquoted.value.objectdef</string>

0 commit comments

Comments
 (0)