Skip to content

Commit f41ad74

Browse files
authored
Add additional keywords
Adds syntax highlighting for certain builtin keywords
1 parent cb88aa6 commit f41ad74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pine-script-mode.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
(defvar pine-script-font-lock-keywords
5454
`(("$$(\\s *\\w+\\s *)" (0 font-lock-function-name-face t))
5555
("$$\\[\\s *\\w+\\s *\\]" (0 font-lock-function-name-face t))
56+
(,(regexp-opt '("and" "else" "false" "for" "if" "not" "or" "true" "var" "varip") `words)
57+
(0 font-lock-keyword-face))
5658
(,(regexp-opt '("accdist" "adjustment.dividends" "adjustment.none" "adjustment.splits"
5759
"alert.freq_all" "alert.freq_once_per_bar" "alert.freq_once_per_bar_close"
5860
"bar_index" "barmerge.gaps_off" "barmerge.gaps_on" "barmerge.lookahead_off"

0 commit comments

Comments
 (0)