|
44 | 44 | "match": "\\\\.", |
45 | 45 | "name": "constant.character.escaped.pine" |
46 | 46 | } |
47 | | - ] |
| 47 | + ] |
48 | 48 | }, |
49 | 49 | { |
50 | 50 | "begin": "'", |
51 | 51 | "beginCaptures": { |
52 | | - "1": { |
| 52 | + "1": { |
53 | 53 | "name": "punctuation.definition.string.begin.pine" |
54 | 54 | } |
55 | 55 | }, |
|
65 | 65 | "match": "\\\\.", |
66 | 66 | "name": "constant.character.escaped.pine" |
67 | 67 | } |
68 | | - ] |
| 68 | + ] |
69 | 69 | } |
70 | 70 | ] |
71 | 71 | }, |
72 | 72 | "functions": { |
73 | 73 | "patterns": [ |
74 | 74 | { |
75 | | - "match": "\\b(abs|acos|alertcondition|alma|asin|atan|atr|avg|barcolor|barssince|bb|bbw|bgcolor|bool|cci|ceil|change|cmo|cog|color|color\\.new|correlation|cos|cross|crossover|crossunder|cum|dayofmonth|dayofweek|dev|dmi|ema|exp|falling|fill|financial|fixnan|float|floor|heikinashi|highest|highestbars|hline|hma|hour|iff|input|int|kagi|kc|kcw|label|line|linebreak|linreg|log|log10|lowest|lowestbars|macd|max|max_bars_back|mfi|min|minute|mom|month|na|nz|offset|percentile_linear_interpolation|percentile_nearest_rank|pivothigh|pivotlow|plot|plotarrow|plotbar|plotcandle|plotchar|plotshape|pointfigure|pow|quandl|renko|rising|rma|roc|round|rsi|sar|second|security|sign|sin|sma|sqrt|stdev|stoch|str\\.replace_all|strategy|string|study|sum|supertrend|swma|tan|tickerid|time|timestamp|tostring|tr|tsi|valuewhen|variance|vwma|weekofyear|wma|wpr|year)(?=\\()", |
| 75 | + "match": "\\b(abs|acos|alertcondition|alma|asin|atan|atr|avg|bar(color|since)|bb|bbw|bgcolor|bool|cci|ceil|change|cmo|cog|color|color\\.new|correlation|cos|cross|crossover|crossunder|cum|dayofmonth|dayofweek|dev|dmi|ema|exp|falling|fill|financial|fixnan|float|floor|heikinashi|highest|highestbars|hline|hma|hour|iff|input|int|kagi|kc|kcw|label|line|linebreak|linreg|log|log10|lowest|lowestbars|macd|max|max_bars_back|mfi|min|minute|mom|month|na|nz|offset|percentile_linear_interpolation|percentile_nearest_rank|pivothigh|pivotlow|plot|plotarrow|plotbar|plotcandle|plotchar|plotshape|pointfigure|pow|quandl|renko|rising|rma|roc|round|rsi|sar|second|security|sign|sin|sma|sqrt|stdev|stoch|str\\.replace_all|strategy|string|study|sum|supertrend|swma|tan|tickerid|time|timestamp|tostring|tr|tsi|valuewhen|variance|vwma|weekofyear|wma|wpr|year)(?=\\()", |
76 | 76 | "captures": { |
77 | | - "1": { |
78 | | - "name": "support.function.pine" |
| 77 | + "1": { |
| 78 | + "name": "support.function.pine" |
79 | 79 | } |
80 | 80 | } |
81 | 81 | }, |
82 | 82 | { |
83 | 83 | "match": "\\barray\\.(avg|clear|concat|copy|covariance|fill|get|includes|indexof|insert|lastindexof|max|median|min|mode|new_bool|new_color|new_float|new_int|pop|push|remove|reverse|set|shift|size|slice|sort|standardize|stdev|sum|unshift|variance)(?=\\()", |
84 | 84 | "captures": { |
85 | | - "1": { |
86 | | - "name": "support.function.pine" |
| 85 | + "1": { |
| 86 | + "name": "support.function.pine" |
87 | 87 | } |
88 | 88 | } |
89 | 89 | }, |
90 | 90 | { |
91 | 91 | "match": "\\blabel\\.(delete|get_text|get_x|get_y|new|set_color|set_size|set_text|set_textalign|set_textcolor|set_tooltip|set_x|set_xloc|set_xy|set_y|set_yloc)(?=\\()", |
92 | 92 | "captures": { |
93 | | - "1": { |
94 | | - "name": "support.function.pine" |
| 93 | + "1": { |
| 94 | + "name": "support.function.pine" |
95 | 95 | } |
96 | 96 | } |
97 | 97 | }, |
98 | 98 | { |
99 | 99 | "match": "\\bline\\.(delete|get_price|get_x1|get_x2|get_y1|get_y2|new|set_color|set_extend|set_style|set_width|set_x1|set_x2|set_xloc|set_xy1|set_xy2|set_y1|set_y2)(?=\\()", |
100 | 100 | "captures": { |
101 | | - "1": { |
102 | | - "name": "support.function.pine" |
| 101 | + "1": { |
| 102 | + "name": "support.function.pine" |
103 | 103 | } |
104 | 104 | } |
105 | 105 | }, |
106 | 106 | { |
107 | 107 | "match": "\\bstrategy\\.(cancel|cancel_all|close|close_all|entry|exit|order)(?=\\()", |
108 | 108 | "captures": { |
109 | | - "1": { |
110 | | - "name": "support.function.pine" |
| 109 | + "1": { |
| 110 | + "name": "support.function.pine" |
111 | 111 | } |
112 | 112 | } |
113 | 113 | }, |
114 | 114 | { |
115 | 115 | "match": "\\bstrategy\\.risk\\.(allow_entry_in|max_cons_loss_days|max_drawdown|max_intraday_filled_orders|max_intraday_loss|max_position_size)(?=\\()", |
116 | 116 | "captures": { |
117 | | - "1": { |
118 | | - "name": "support.function.pine" |
| 117 | + "1": { |
| 118 | + "name": "support.function.pine" |
119 | 119 | } |
120 | 120 | } |
121 | 121 | }, |
|
126 | 126 | { |
127 | 127 | "match": "([a-zA-Z_][a-zA-Z0-9_]*)\\(.*\\)\\s(=>)\\s", |
128 | 128 | "captures": { |
129 | | - "1": { |
130 | | - "name": "support.function.pine" |
| 129 | + "1": { |
| 130 | + "name": "support.function.pine" |
131 | 131 | }, |
132 | 132 | "2": { |
133 | 133 | "name": "keyword.operator.assignment.pine" |
|
143 | 143 | "name": "constant.language.pine" |
144 | 144 | }, |
145 | 145 | { |
146 | | - "match": "\\b(accdist|bar_index|close|dayofmonth|dayofweek|high|hl2|hlc3|hour|iii|low|minute|month|na|nvi|obv|ohlc4|open|pvi|pvt|second|time|time_close|timenow|tr|volume|vwap|wad|weekofyear|wvad|year|)\\b", |
| 146 | + "match": "\\b(accdist|bar_index|close|dayofmonth|dayofweek|high|hl2|hlc3|hour|iii|low|minute|month|na|nvi|obv|ohlc4|open|pvi|pvt|second|time|time_close|timenow|tr|volume|vwap|wad|weekofyear|wvad|year)\\b", |
147 | 147 | "name": "constant.language.pine" |
148 | 148 | }, |
149 | 149 | { |
|
273 | 273 | { |
274 | 274 | "match": "\\b([0-9]+)\\b", |
275 | 275 | "name": "constant.numeric.pine" |
276 | | - } |
| 276 | + } |
277 | 277 | ] |
278 | 278 | }, |
279 | 279 | "operators": { |
|
297 | 297 | { |
298 | 298 | "match": "=", |
299 | 299 | "name": "keyword.operator.assignment.pine" |
300 | | - } |
| 300 | + } |
301 | 301 | ] |
302 | 302 | }, |
303 | 303 | "keywords": { |
|
0 commit comments