Skip to content

Commit 2007449

Browse files
authored
Merge pull request yankikucuk#1 from wallneradam/master
Added ":=" for operators and variable declarations
2 parents 8d0906f + 2a24e01 commit 2007449

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pine-script-syntax-highlighter",
33
"displayName": "Pine Script Syntax Highlighter",
44
"description": "Write awesome indicators or strategies with me!",
5-
"version": "1.0.4",
5+
"version": "1.0.5",
66
"author": "Yankı Küçük <[email protected]> (https://github.com/kendinikertenkelebek)",
77
"publisher": "ex-codes",
88
"icon": "images/pinescript.png",

syntaxes/pinescript.tmLanguage.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"begin": "'",
54-
"beginCaptures": {
54+
"beginCaptures": {
5555
"1": {
5656
"name": "punctuation.definition.string.begin.pine"
5757
}
@@ -75,7 +75,7 @@
7575
"keywords": {
7676
"patterns": [
7777
{
78-
"match": "\\b(if|else|continue|break|for|return)\\b",
78+
"match": "\\b(if|else|continue|break|for|return|var)\\b",
7979
"name": "keyword.control.pine"
8080
}
8181
]
@@ -143,7 +143,7 @@
143143
"variables": {
144144
"patterns": [
145145
{
146-
"match": "[a-zA-Z_][a-zA-Z0-9_]*\\s*(?=\\=)",
146+
"match": "[a-zA-Z_][a-zA-Z0-9_]*\\s*(?=\\=|:=)",
147147
"name": "variable.other.pine"
148148
}
149149
]
@@ -186,7 +186,7 @@
186186
"name": "keyword.operator.logical.pine"
187187
},
188188
{
189-
"match": "=",
189+
"match": "(=|:=)",
190190
"name": "keyword.operator.assignment.pine"
191191
}
192192
]

0 commit comments

Comments
 (0)