-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlittlepython.tmLanguage
More file actions
67 lines (67 loc) · 1.66 KB
/
Copy pathlittlepython.tmLanguage
File metadata and controls
67 lines (67 loc) · 1.66 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>lp</string>
</array>
<key>name</key>
<string>Little Python</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>if else highlights all in the parenthesis as well</string>
<key>match</key>
<string>(?=\s*)(if|else)</string>
<key>name</key>
<string>keyword.control.flow.lp</string>
</dict>
<dict>
<key>comment</key>
<string>Arithmetic Operators</string>
<key>match</key>
<string>\+\-/\*\%</string>
<key>name</key>
<string>keyword.operator.lp</string>
</dict>
<dict>
<key>comment</key>
<string>Comparison Operators</string>
<key>match</key>
<string>(?=\s*)(==|is)(?=\s*\w+)</string>
<key>name</key>
<string>keyword.operator.comparison.lp</string>
</dict>
<dict>
<key>comment</key>
<string>Logical Operators</string>
<key>match</key>
<string>(?=\s*)(and|or|not)(?=\s*\w+)</string>
<key>name</key>
<string>keyword.operator.logical.lp</string>
</dict>
<dict>
<key>comment</key>
<string>Variables</string>
<key>match</key>
<string>([\_a-zA-Z][a-zA-Z0-9]*)(?=\s\=)</string>
<key>name</key>
<string>keyword.source.lp</string>
</dict>
<dict>
<key>comment</key>
<string>Comment</string>
<key>match</key>
<string>\#.*$</string>
<key>name</key>
<string>comment.line.number-sign.lp</string>
</dict>
</array>
<key>scopeName</key>
<string>source.lp</string>
<key>uuid</key>
<string>ca03e751-04ef-4330-9a6b-9b99aae1c418</string>
</dict>
</plist>