Skip to content

Commit af69e2c

Browse files
committed
use ~enum syntax
1 parent 561615c commit af69e2c

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
# 0.0.30
4+
- update enum syntax to ~<identifier>
5+
36
# 0.0.29
47
- add support for enum
58

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
@@ -3,7 +3,7 @@
33
"name": "terrabuild",
44
"displayName": "Terrabuild",
55
"description": "Syntax highlighting for Terrabuild",
6-
"version": "0.0.29",
6+
"version": "0.0.30",
77
"publisher": "MagnusOpera",
88
"license": "FSL-1.1-Apache-2.0",
99
"repository": {

syntaxes/terrabuild-lang.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"patterns": [
133133
{
134134
"name": "constant.other.symbol.enum",
135-
"match": ":[a-z](_?[a-z0-9]+)*"
135+
"match": "~[a-z](_?[a-z0-9]+)*"
136136
}
137137
]
138138
},

tests/PROJECT

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ project {
2525
# target
2626
target dist {
2727
# target definition
28-
rebuild = :auto
28+
rebuild = ~auto
2929
depends_on = [ target.build
3030
target.^dist ]
3131
outputs = []
32-
cache = :remote
32+
cache = ~remote
3333
unknown = "toto"
3434

3535
@dotnet tutu { single = true }
@@ -61,7 +61,7 @@ locals {
6161
# bindings
6262
string = "toto"
6363
number = 42
64-
enum = :tagada
64+
enum = ~tagada
6565
negative_number = -42
6666
map = { a: 42
6767
b: 666}

tests/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ target build {
1414
# target definition
1515
depends_on = [ # comment in list
1616
target.^build ]
17-
cache = :local
17+
cache = ~local
1818
rebuild = true
1919

2020
unknown = "toto"

0 commit comments

Comments
 (0)