Skip to content

Commit 6299de5

Browse files
committed
Fix gerardroche#9 if outside a boundary should not be a keyword
1 parent f083fcd commit 6299de5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Pine.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ contexts:
195195
- match: \b(//@version=5|export|import|series|simple|switch|)\b
196196
scope: keyword.control.import.pine
197197

198-
- match: (|if|else|for|for...in|while)
198+
- match: \b(if|else|for|for...in|while)\b
199199
scope: keyword.control.conditional.pine
200200

201201
# functions

syntax_test.pine

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,7 @@ plot(macd, color=color.blue)
158158
// ^^^^^^^^^^ constant.language
159159
plot(signal, color=color.orange)
160160
// ^^^^^^^^^^^^ constant.language
161+
162+
// https://github.com/gerardroche/sublime-pine/issues/9
163+
backtest_safety = bb_bands_diff
164+
// ^^^^ -keyword

0 commit comments

Comments
 (0)