forked from akmrsk/maxscript-mode
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_hightlightingExample.ms
100 lines (66 loc) · 1.88 KB
/
test_hightlightingExample.ms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
fn function0 = ()
fn function1 arg1 = ()
fn function2 arg1 arg2 = ()
fn function3 kwarg1:defval1 = ()
fn function4 kwarg1: kwarg2:defval2 = ()
fn function5 kwarg1: kwarg2 : defval2 kwarg3 : defval3 = ()
/***
docstring face
***/
/*
non docstring multiline comment
*/
/**
not docstring
*/
-- comment face
--comment face
--"commented string"
/*
"multiline commented string"
*/
/***
"docstring including string"
***/
// not a comment
"string face"
@"raw string face"
"string with ' single quotes should not break string-highlighting"
"string with -- comment should not break string-highlighting"
"string with escaped quotes \" should not \" break string-highlighting"
"string with escaped raw string @\" should not \" break string-highlighting"
"string with /*** docstring ***/ should not break string-hightlighting"
"string with `backquotes` should not break string-hightlighting, though they may hightlight the backquoted part differently"
\"escaped quote outside string should break string-hightlighting!".. "
"str 1"\
"str2"
var1 = value1
var1 = functioncall()
var1 = functioncall without braces
:var = preceded by colon should not be var highlighted
functioncall( arg1 arg2 )
functioncall without braces
(functioncall arg1 arg2)
functioncall kwarg:val kwarg: val kwarg : val
invalidarg:value
#nameface
#nameface = #othername
arrayShouldNotBeNameFace = #()
arrayShouldNotBeNameFace2 = #(1, 2, 3, 4)
numeralvar = 1
floatvar = 1.2
$object
$object.name
$bla*.name
for obj in objects where obj.parent != undefined do(
return ok
)
UNDEFINED OK Undefined Ok
struct STRUCT objects OBJECTS
-dude
-- Fehler in Anonymer Codeblock; Dateiname: c:\Users\JB\AppData\Local\Temp\sendtomaxtempfile.ms; Position: 113; Zeile:: 7
-- Syntaxfehler: bei ), erwartet <factor>
-- In Zeile: )
-- Fehler in Anonymer Codeblock; Dateiname: ; Position: 2; Zeile:: 1
-- Syntaxfehler: bei ), erwartet <factor>
-- In Zeile: )