[OCaml] Mobile-friendly clone of cgit.
1
{
2
"comment":"",
3
"fileTypes":[
4
"lisp",
5
"cl",
6
"l",
7
"mud",
8
"el"
9
],
10
"keyEquivalent":"^~L",
11
"name":"Lisp",
12
"patterns":[
13
{
14
"begin":"(^[ \\t]+)?(?=;)",
15
"beginCaptures":{
16
"1":{
17
"name":"punctuation.whitespace.comment.leading.lisp"
18
}
19
},
20
"end":"(?!\\G)",
21
"patterns":[
22
{
23
"begin":";",
24
"beginCaptures":{
25
"0":{
26
"name":"punctuation.definition.comment.lisp"
27
}
28
},
29
"end":"\\n",
30
"name":"comment.line.semicolon.lisp"
31
}
32
]
33
},
34
{
35
"captures":{
36
"2":{
37
"name":"storage.type.function-type.lisp"
38
},
39
"4":{
40
"name":"entity.name.function.lisp"
41
}
42
},
43
"match":"(\\b(?i:(defun|defgeneric|defmethod|defmacro|defclass|defstruct|defconstant|defvar|defparameter))\\b)(\\s+)((\\w|\\-|\\!|\\?)*)",
44
"name":"meta.function.lisp"
45
},
46
{
47
"captures":{
48
"1":{
49
"name":"punctuation.definition.constant.lisp"
50
}
51
},
52
"match":"(#|\\?)(\\w|[\\\\+-=<>'\"&#])+",
53
"name":"constant.character.lisp"
54
},
55
{
56
"captures":{
57
"1":{
58
"name":"punctuation.definition.variable.lisp"
59
},
60
"3":{
61
"name":"punctuation.definition.variable.lisp"
62
}
63
},
64
"match":"(\\*)(\\S*)(\\*)",
65
"name":"variable.other.global.lisp"
66
},
67
{
68
"match":"\\b(?i:case|ecase|ccase|typecase|etypecase|ctypecase|do|dolist|dotimes|let|let\\*|labels|flet|loop|if|else|when|unless)\\b",
69
"name":"keyword.control.lisp"
70
},
71
{
72
"match":"\\b(?i:eq|neq|and|or|not)\\b",
73
"name":"keyword.operator.lisp"
74
},
75
{
76
"match":"\\b(?i:null|nil)\\b",
77
"name":"constant.language.lisp"
78
},
79
{
80
"match":"(?<![-\\w])(?i:cons|car|cdr|cond|lambda|format|setq|setf|quote|eval|append|list|listp|memberp|t|load|progn)(?![-\\w])",
81
"name":"support.function.lisp"
82
},
83
{
84
"match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b",
85
"name":"constant.numeric.lisp"
86
},
87
{
88
"begin":"\"",
89
"beginCaptures":{
90
"0":{
91
"name":"punctuation.definition.string.begin.lisp"
92
}
93
},
94
"end":"\"",
95
"endCaptures":{
96
"0":{
97
"name":"punctuation.definition.string.end.lisp"
98
}
99
},
100
"name":"string.quoted.double.lisp",
101
"patterns":[
102
{
103
"match":"\\\\.",
104
"name":"constant.character.escape.lisp"
105
}
106
]
107
}
108
],
109
"scopeName":"source.lisp",
110
"uuid":"00D451C9-6B1D-11D9-8DFA-000D93589AF6"
111
}
112