Skip to content

Commit

Permalink
Merge pull request #1 from wallneradam/master
Browse files Browse the repository at this point in the history
Added ":=" for operators and variable declarations
  • Loading branch information
yankikucuk authored Oct 17, 2020
2 parents 8d0906f + 2a24e01 commit 2007449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pine-script-syntax-highlighter",
"displayName": "Pine Script Syntax Highlighter",
"description": "Write awesome indicators or strategies with me!",
"version": "1.0.4",
"version": "1.0.5",
"author": "Yankı Küçük <[email protected]> (https://github.com/kendinikertenkelebek)",
"publisher": "ex-codes",
"icon": "images/pinescript.png",
Expand Down
8 changes: 4 additions & 4 deletions syntaxes/pinescript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
{
"begin": "'",
"beginCaptures": {
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.begin.pine"
}
Expand All @@ -75,7 +75,7 @@
"keywords": {
"patterns": [
{
"match": "\\b(if|else|continue|break|for|return)\\b",
"match": "\\b(if|else|continue|break|for|return|var)\\b",
"name": "keyword.control.pine"
}
]
Expand Down Expand Up @@ -143,7 +143,7 @@
"variables": {
"patterns": [
{
"match": "[a-zA-Z_][a-zA-Z0-9_]*\\s*(?=\\=)",
"match": "[a-zA-Z_][a-zA-Z0-9_]*\\s*(?=\\=|:=)",
"name": "variable.other.pine"
}
]
Expand Down Expand Up @@ -186,7 +186,7 @@
"name": "keyword.operator.logical.pine"
},
{
"match": "=",
"match": "(=|:=)",
"name": "keyword.operator.assignment.pine"
}
]
Expand Down

0 comments on commit 2007449

Please sign in to comment.