Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 69bcbc4

Browse files
Added boxes.
1 parent 384ce83 commit 69bcbc4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: syntaxes/pine.tmLanguage.json

+18
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,24 @@
690690
"name": "support.class.builtin.pine",
691691
"match": "\\b(line)\\b"
692692
},
693+
{
694+
"name": "meta.function-call",
695+
"begin": "\\b(box)(\\.)((new|delete|set_top|set_text|set_text_valign|set_text_halign|set_text_size|set_text_color|set_color|set_extend|set_style|set_width|set_right_bottom|set_right|set_lefttop|set_left|set_extend|set_bottom|set_border_width|set_border_style|set_border_color|set_bgcolor|get_top|get_right|get_left|get_bottom)|(\\w+))(?=\\()",
696+
"beginCaptures": {
697+
"1" : { "name" : "support.class.builtin.pine" },
698+
"2" : { "name" : "punctuation.accessor.pine" },
699+
"4" : { "name" : "support.function.box.pine" },
700+
"5" : { "name" : "invalid.function.box.pine" }
701+
},
702+
"end":"(?<=\\))",
703+
"patterns": [
704+
{ "include": "#functionCallParams" }
705+
]
706+
},
707+
{
708+
"name": "support.class.builtin.pine",
709+
"match": "\\b(box)\\b"
710+
},
693711
{
694712
"name": "meta.function-call",
695713
"begin": "\\b(label)(\\.)((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|set_style)|(\\w+))(?=\\()",

0 commit comments

Comments
 (0)