@threadlabs/looma 0.18.6 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
- package/components/ui-tree-item/ui-tree-item.html +5 -5
- package/components/ui-tree-item/ui-tree-item.js +20 -3
- package/dist/index.js +1 -1
- package/editor/chunks/extensions.js +24 -3
- package/editor/extensions/preset.d.ts +2 -0
- package/editor/extensions/table-commands.d.ts +1 -1
- package/editor/table-overlay.d.ts +8 -3
- package/package.json +2 -1
- package/styles/ui-editor-table-overlay.css +30 -0
- package/styles/ui-editor-table-toolbar.css +7 -2
- package/styles/ui-tree-item.css +5 -5
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +9 -3
- package/vue/UiEditorTableOverlay.d.ts +8 -0
- package/vue/UiEditorTableOverlay.vue +45 -2
- package/vue/UiEditorTableToolbar.vue +7 -2
- package/vue/UiTreeItem.vue +5 -5
- package/vue/chunks/1c.js +106 -0
- package/vue/chunks/UiEditorTableOverlay.js +14 -4
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/chunks/abnf.js +61 -0
- package/vue/chunks/accesslog.js +72 -0
- package/vue/chunks/actionscript.js +139 -0
- package/vue/chunks/ada.js +183 -0
- package/vue/chunks/angelscript.js +141 -0
- package/vue/chunks/apache.js +88 -0
- package/vue/chunks/applescript.js +99 -0
- package/vue/chunks/arcade.js +405 -0
- package/vue/chunks/arduino.js +871 -0
- package/vue/chunks/armasm.js +65 -0
- package/vue/chunks/asciidoc.js +181 -0
- package/vue/chunks/aspectj.js +202 -0
- package/vue/chunks/autohotkey.js +54 -0
- package/vue/chunks/autoit.js +132 -0
- package/vue/chunks/avrasm.js +46 -0
- package/vue/chunks/awk.js +58 -0
- package/vue/chunks/axapta.js +167 -0
- package/vue/chunks/bash.js +358 -0
- package/vue/chunks/basic.js +221 -0
- package/vue/chunks/bnf.js +27 -0
- package/vue/chunks/brainfuck.js +40 -0
- package/vue/chunks/c.js +265 -0
- package/vue/chunks/cal.js +136 -0
- package/vue/chunks/capnproto.js +86 -0
- package/vue/chunks/ceylon.js +125 -0
- package/vue/chunks/clean.js +54 -0
- package/vue/chunks/clojure-repl.js +17 -0
- package/vue/chunks/clojure.js +133 -0
- package/vue/chunks/cmake.js +23 -0
- package/vue/chunks/coffeescript.js +291 -0
- package/vue/chunks/coq.js +436 -0
- package/vue/chunks/cos.js +77 -0
- package/vue/chunks/cpp.js +492 -0
- package/vue/chunks/crmsh.js +80 -0
- package/vue/chunks/crystal.js +260 -0
- package/vue/chunks/csharp.js +376 -0
- package/vue/chunks/csp.js +52 -0
- package/vue/chunks/css.js +890 -0
- package/vue/chunks/d.js +184 -0
- package/vue/chunks/dart.js +226 -0
- package/vue/chunks/delphi.js +227 -0
- package/vue/chunks/diff.js +40 -0
- package/vue/chunks/django.js +43 -0
- package/vue/chunks/dns.js +66 -0
- package/vue/chunks/dockerfile.js +35 -0
- package/vue/chunks/dos.js +147 -0
- package/vue/chunks/dsconfig.js +55 -0
- package/vue/chunks/dts.js +119 -0
- package/vue/chunks/dust.js +33 -0
- package/vue/chunks/ebnf.js +40 -0
- package/vue/chunks/elixir.js +241 -0
- package/vue/chunks/elm.js +103 -0
- package/vue/chunks/erb.js +17 -0
- package/vue/chunks/erlang-repl.js +41 -0
- package/vue/chunks/erlang.js +236 -0
- package/vue/chunks/excel.js +562 -0
- package/vue/chunks/fix.js +30 -0
- package/vue/chunks/flix.js +60 -0
- package/vue/chunks/fortran.js +543 -0
- package/vue/chunks/fsharp.js +440 -0
- package/vue/chunks/gams.js +134 -0
- package/vue/chunks/gauss.js +167 -0
- package/vue/chunks/gcode.js +131 -0
- package/vue/chunks/gherkin.js +41 -0
- package/vue/chunks/glsl.js +25 -0
- package/vue/chunks/gml.js +3119 -0
- package/vue/chunks/go.js +140 -0
- package/vue/chunks/golo.js +72 -0
- package/vue/chunks/gradle.js +181 -0
- package/vue/chunks/graphql.js +68 -0
- package/vue/chunks/groovy.js +159 -0
- package/vue/chunks/haml.js +96 -0
- package/vue/chunks/handlebars.js +191 -0
- package/vue/chunks/haskell.js +149 -0
- package/vue/chunks/haxe.js +142 -0
- package/vue/chunks/hsp.js +45 -0
- package/vue/chunks/http.js +77 -0
- package/vue/chunks/hy.js +92 -0
- package/vue/chunks/inform7.js +45 -0
- package/vue/chunks/ini.js +94 -0
- package/vue/chunks/irpf90.js +52 -0
- package/vue/chunks/isbl.js +112 -0
- package/vue/chunks/java.js +237 -0
- package/vue/chunks/javascript.js +570 -0
- package/vue/chunks/jboss-cli.js +46 -0
- package/vue/chunks/json.js +45 -0
- package/vue/chunks/julia-repl.js +18 -0
- package/vue/chunks/julia.js +353 -0
- package/vue/chunks/kotlin.js +216 -0
- package/vue/chunks/lasso.js +127 -0
- package/vue/chunks/latex.js +206 -0
- package/vue/chunks/ldif.js +25 -0
- package/vue/chunks/leaf.js +72 -0
- package/vue/chunks/less.js +953 -0
- package/vue/chunks/lisp.js +119 -0
- package/vue/chunks/livecodeserver.js +86 -0
- package/vue/chunks/livescript.js +309 -0
- package/vue/chunks/llvm.js +77 -0
- package/vue/chunks/lsl.js +55 -0
- package/vue/chunks/lua.js +49 -0
- package/vue/chunks/makefile.js +62 -0
- package/vue/chunks/markdown.js +194 -0
- package/vue/chunks/mathematica.js +7317 -0
- package/vue/chunks/matlab.js +70 -0
- package/vue/chunks/maxima.js +38 -0
- package/vue/chunks/mel.js +24 -0
- package/vue/chunks/mercury.js +62 -0
- package/vue/chunks/mipsasm.js +53 -0
- package/vue/chunks/mizar.js +10 -0
- package/vue/chunks/mojolicious.js +27 -0
- package/vue/chunks/monkey.js +158 -0
- package/vue/chunks/moonscript.js +102 -0
- package/vue/chunks/n1ql.js +346 -0
- package/vue/chunks/nestedtext.js +66 -0
- package/vue/chunks/nginx.js +127 -0
- package/vue/chunks/nim.js +174 -0
- package/vue/chunks/nix.js +334 -0
- package/vue/chunks/node-repl.js +20 -0
- package/vue/chunks/nsis.js +515 -0
- package/vue/chunks/objectivec.js +235 -0
- package/vue/chunks/ocaml.js +52 -0
- package/vue/chunks/openscad.js +66 -0
- package/vue/chunks/oxygene.js +58 -0
- package/vue/chunks/parser3.js +40 -0
- package/vue/chunks/perl.js +454 -0
- package/vue/chunks/pf.js +30 -0
- package/vue/chunks/pgsql.js +196 -0
- package/vue/chunks/php-template.js +43 -0
- package/vue/chunks/php.js +527 -0
- package/vue/chunks/plaintext.js +10 -0
- package/vue/chunks/pony.js +60 -0
- package/vue/chunks/powershell.js +208 -0
- package/vue/chunks/processing.js +407 -0
- package/vue/chunks/profile.js +38 -0
- package/vue/chunks/prolog.js +62 -0
- package/vue/chunks/properties.js +45 -0
- package/vue/chunks/protobuf.js +63 -0
- package/vue/chunks/puppet.js +87 -0
- package/vue/chunks/purebasic.js +42 -0
- package/vue/chunks/python-repl.js +19 -0
- package/vue/chunks/python.js +357 -0
- package/vue/chunks/q.js +21 -0
- package/vue/chunks/qml.js +134 -0
- package/vue/chunks/r.js +145 -0
- package/vue/chunks/reasonml.js +134 -0
- package/vue/chunks/rib.js +16 -0
- package/vue/chunks/roboconf.js +54 -0
- package/vue/chunks/routeros.js +109 -0
- package/vue/chunks/rsl.js +138 -0
- package/vue/chunks/ruby.js +322 -0
- package/vue/chunks/ruleslanguage.js +26 -0
- package/vue/chunks/rust.js +296 -0
- package/vue/chunks/sas.js +533 -0
- package/vue/chunks/scala.js +173 -0
- package/vue/chunks/scheme.js +118 -0
- package/vue/chunks/scilab.js +45 -0
- package/vue/chunks/scss.js +900 -0
- package/vue/chunks/shell.js +18 -0
- package/vue/chunks/smali.js +113 -0
- package/vue/chunks/smalltalk.js +59 -0
- package/vue/chunks/sml.js +49 -0
- package/vue/chunks/sqf.js +2599 -0
- package/vue/chunks/sql.js +624 -0
- package/vue/chunks/stan.js +471 -0
- package/vue/chunks/stata.js +33 -0
- package/vue/chunks/step21.js +53 -0
- package/vue/chunks/stylus.js +925 -0
- package/vue/chunks/subunit.js +34 -0
- package/vue/chunks/swift.js +699 -0
- package/vue/chunks/taggerscript.js +37 -0
- package/vue/chunks/tap.js +30 -0
- package/vue/chunks/tcl.js +165 -0
- package/vue/chunks/thrift.js +65 -0
- package/vue/chunks/tp.js +155 -0
- package/vue/chunks/twig.js +232 -0
- package/vue/chunks/typescript.js +672 -0
- package/vue/chunks/vala.js +39 -0
- package/vue/chunks/vbnet.js +86 -0
- package/vue/chunks/vbscript-html.js +14 -0
- package/vue/chunks/vbscript.js +200 -0
- package/vue/chunks/verilog.js +534 -0
- package/vue/chunks/vhdl.js +190 -0
- package/vue/chunks/vim.js +54 -0
- package/vue/chunks/wasm.js +111 -0
- package/vue/chunks/wren.js +229 -0
- package/vue/chunks/x86asm.js +64 -0
- package/vue/chunks/xl.js +192 -0
- package/vue/chunks/xml.js +175 -0
- package/vue/chunks/xquery.js +303 -0
- package/vue/chunks/yaml.js +159 -0
- package/vue/chunks/zephir.js +74 -0
- package/vue/components.css +204 -170
- package/vue/editor/LoomaEditor.d.ts +7 -7
- package/vue/editor/code-language-catalog.d.ts +196 -0
- package/vue/editor/index.js +290 -20
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/arduino.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function cPlusPlus(hljs) {
|
|
4
|
+
const regex = hljs.regex;
|
|
5
|
+
const C_LINE_COMMENT_MODE = hljs.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] });
|
|
6
|
+
const DECLTYPE_AUTO_RE = "decltype\\(auto\\)";
|
|
7
|
+
const NAMESPACE_RE = "[a-zA-Z_]\\w*::";
|
|
8
|
+
const FUNCTION_TYPE_RE = "(?!struct)(decltype\\(auto\\)|" + regex.optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + regex.optional("<[^<>]+>") + ")";
|
|
9
|
+
const CPP_PRIMITIVE_TYPES = {
|
|
10
|
+
className: "type",
|
|
11
|
+
begin: "\\b[a-z\\d_]*_t\\b"
|
|
12
|
+
};
|
|
13
|
+
const STRINGS = {
|
|
14
|
+
className: "string",
|
|
15
|
+
variants: [
|
|
16
|
+
{
|
|
17
|
+
begin: "(u8?|U|L)?\"",
|
|
18
|
+
end: "\"",
|
|
19
|
+
illegal: "\\n",
|
|
20
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
begin: "(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
|
24
|
+
end: "'",
|
|
25
|
+
illegal: "."
|
|
26
|
+
},
|
|
27
|
+
hljs.END_SAME_AS_BEGIN({
|
|
28
|
+
begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,
|
|
29
|
+
end: /\)([^()\\ ]{0,16})"/
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
const NUMBERS = {
|
|
34
|
+
className: "number",
|
|
35
|
+
variants: [{ begin: "[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)" }, { begin: "[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)" }],
|
|
36
|
+
relevance: 0
|
|
37
|
+
};
|
|
38
|
+
const PREPROCESSOR = {
|
|
39
|
+
className: "meta",
|
|
40
|
+
begin: /#\s*[a-z]+\b/,
|
|
41
|
+
end: /$/,
|
|
42
|
+
keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" },
|
|
43
|
+
contains: [
|
|
44
|
+
{
|
|
45
|
+
begin: /\\\n/,
|
|
46
|
+
relevance: 0
|
|
47
|
+
},
|
|
48
|
+
hljs.inherit(STRINGS, { className: "string" }),
|
|
49
|
+
{
|
|
50
|
+
className: "string",
|
|
51
|
+
begin: /<.*?>/
|
|
52
|
+
},
|
|
53
|
+
C_LINE_COMMENT_MODE,
|
|
54
|
+
hljs.C_BLOCK_COMMENT_MODE
|
|
55
|
+
]
|
|
56
|
+
};
|
|
57
|
+
const TITLE_MODE = {
|
|
58
|
+
className: "title",
|
|
59
|
+
begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
|
60
|
+
relevance: 0
|
|
61
|
+
};
|
|
62
|
+
const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
|
|
63
|
+
const RESERVED_KEYWORDS = [
|
|
64
|
+
"alignas",
|
|
65
|
+
"alignof",
|
|
66
|
+
"and",
|
|
67
|
+
"and_eq",
|
|
68
|
+
"asm",
|
|
69
|
+
"atomic_cancel",
|
|
70
|
+
"atomic_commit",
|
|
71
|
+
"atomic_noexcept",
|
|
72
|
+
"auto",
|
|
73
|
+
"bitand",
|
|
74
|
+
"bitor",
|
|
75
|
+
"break",
|
|
76
|
+
"case",
|
|
77
|
+
"catch",
|
|
78
|
+
"class",
|
|
79
|
+
"co_await",
|
|
80
|
+
"co_return",
|
|
81
|
+
"co_yield",
|
|
82
|
+
"compl",
|
|
83
|
+
"concept",
|
|
84
|
+
"const_cast|10",
|
|
85
|
+
"consteval",
|
|
86
|
+
"constexpr",
|
|
87
|
+
"constinit",
|
|
88
|
+
"continue",
|
|
89
|
+
"decltype",
|
|
90
|
+
"default",
|
|
91
|
+
"delete",
|
|
92
|
+
"do",
|
|
93
|
+
"dynamic_cast|10",
|
|
94
|
+
"else",
|
|
95
|
+
"enum",
|
|
96
|
+
"explicit",
|
|
97
|
+
"export",
|
|
98
|
+
"extern",
|
|
99
|
+
"false",
|
|
100
|
+
"final",
|
|
101
|
+
"for",
|
|
102
|
+
"friend",
|
|
103
|
+
"goto",
|
|
104
|
+
"if",
|
|
105
|
+
"import",
|
|
106
|
+
"inline",
|
|
107
|
+
"module",
|
|
108
|
+
"mutable",
|
|
109
|
+
"namespace",
|
|
110
|
+
"new",
|
|
111
|
+
"noexcept",
|
|
112
|
+
"not",
|
|
113
|
+
"not_eq",
|
|
114
|
+
"nullptr",
|
|
115
|
+
"operator",
|
|
116
|
+
"or",
|
|
117
|
+
"or_eq",
|
|
118
|
+
"override",
|
|
119
|
+
"private",
|
|
120
|
+
"protected",
|
|
121
|
+
"public",
|
|
122
|
+
"reflexpr",
|
|
123
|
+
"register",
|
|
124
|
+
"reinterpret_cast|10",
|
|
125
|
+
"requires",
|
|
126
|
+
"return",
|
|
127
|
+
"sizeof",
|
|
128
|
+
"static_assert",
|
|
129
|
+
"static_cast|10",
|
|
130
|
+
"struct",
|
|
131
|
+
"switch",
|
|
132
|
+
"synchronized",
|
|
133
|
+
"template",
|
|
134
|
+
"this",
|
|
135
|
+
"thread_local",
|
|
136
|
+
"throw",
|
|
137
|
+
"transaction_safe",
|
|
138
|
+
"transaction_safe_dynamic",
|
|
139
|
+
"true",
|
|
140
|
+
"try",
|
|
141
|
+
"typedef",
|
|
142
|
+
"typeid",
|
|
143
|
+
"typename",
|
|
144
|
+
"union",
|
|
145
|
+
"using",
|
|
146
|
+
"virtual",
|
|
147
|
+
"volatile",
|
|
148
|
+
"while",
|
|
149
|
+
"xor",
|
|
150
|
+
"xor_eq"
|
|
151
|
+
];
|
|
152
|
+
const RESERVED_TYPES = [
|
|
153
|
+
"bool",
|
|
154
|
+
"char",
|
|
155
|
+
"char16_t",
|
|
156
|
+
"char32_t",
|
|
157
|
+
"char8_t",
|
|
158
|
+
"double",
|
|
159
|
+
"float",
|
|
160
|
+
"int",
|
|
161
|
+
"long",
|
|
162
|
+
"short",
|
|
163
|
+
"void",
|
|
164
|
+
"wchar_t",
|
|
165
|
+
"unsigned",
|
|
166
|
+
"signed",
|
|
167
|
+
"const",
|
|
168
|
+
"static"
|
|
169
|
+
];
|
|
170
|
+
const TYPE_HINTS = [
|
|
171
|
+
"any",
|
|
172
|
+
"auto_ptr",
|
|
173
|
+
"barrier",
|
|
174
|
+
"binary_semaphore",
|
|
175
|
+
"bitset",
|
|
176
|
+
"complex",
|
|
177
|
+
"condition_variable",
|
|
178
|
+
"condition_variable_any",
|
|
179
|
+
"counting_semaphore",
|
|
180
|
+
"deque",
|
|
181
|
+
"false_type",
|
|
182
|
+
"flat_map",
|
|
183
|
+
"flat_set",
|
|
184
|
+
"future",
|
|
185
|
+
"imaginary",
|
|
186
|
+
"initializer_list",
|
|
187
|
+
"istringstream",
|
|
188
|
+
"jthread",
|
|
189
|
+
"latch",
|
|
190
|
+
"lock_guard",
|
|
191
|
+
"multimap",
|
|
192
|
+
"multiset",
|
|
193
|
+
"mutex",
|
|
194
|
+
"optional",
|
|
195
|
+
"ostringstream",
|
|
196
|
+
"packaged_task",
|
|
197
|
+
"pair",
|
|
198
|
+
"promise",
|
|
199
|
+
"priority_queue",
|
|
200
|
+
"queue",
|
|
201
|
+
"recursive_mutex",
|
|
202
|
+
"recursive_timed_mutex",
|
|
203
|
+
"scoped_lock",
|
|
204
|
+
"set",
|
|
205
|
+
"shared_future",
|
|
206
|
+
"shared_lock",
|
|
207
|
+
"shared_mutex",
|
|
208
|
+
"shared_timed_mutex",
|
|
209
|
+
"shared_ptr",
|
|
210
|
+
"stack",
|
|
211
|
+
"string_view",
|
|
212
|
+
"stringstream",
|
|
213
|
+
"timed_mutex",
|
|
214
|
+
"thread",
|
|
215
|
+
"true_type",
|
|
216
|
+
"tuple",
|
|
217
|
+
"unique_lock",
|
|
218
|
+
"unique_ptr",
|
|
219
|
+
"unordered_map",
|
|
220
|
+
"unordered_multimap",
|
|
221
|
+
"unordered_multiset",
|
|
222
|
+
"unordered_set",
|
|
223
|
+
"variant",
|
|
224
|
+
"vector",
|
|
225
|
+
"weak_ptr",
|
|
226
|
+
"wstring",
|
|
227
|
+
"wstring_view"
|
|
228
|
+
];
|
|
229
|
+
const FUNCTION_HINTS = [
|
|
230
|
+
"abort",
|
|
231
|
+
"abs",
|
|
232
|
+
"acos",
|
|
233
|
+
"apply",
|
|
234
|
+
"as_const",
|
|
235
|
+
"asin",
|
|
236
|
+
"atan",
|
|
237
|
+
"atan2",
|
|
238
|
+
"calloc",
|
|
239
|
+
"ceil",
|
|
240
|
+
"cerr",
|
|
241
|
+
"cin",
|
|
242
|
+
"clog",
|
|
243
|
+
"cos",
|
|
244
|
+
"cosh",
|
|
245
|
+
"cout",
|
|
246
|
+
"declval",
|
|
247
|
+
"endl",
|
|
248
|
+
"exchange",
|
|
249
|
+
"exit",
|
|
250
|
+
"exp",
|
|
251
|
+
"fabs",
|
|
252
|
+
"floor",
|
|
253
|
+
"fmod",
|
|
254
|
+
"forward",
|
|
255
|
+
"fprintf",
|
|
256
|
+
"fputs",
|
|
257
|
+
"free",
|
|
258
|
+
"frexp",
|
|
259
|
+
"fscanf",
|
|
260
|
+
"future",
|
|
261
|
+
"invoke",
|
|
262
|
+
"isalnum",
|
|
263
|
+
"isalpha",
|
|
264
|
+
"iscntrl",
|
|
265
|
+
"isdigit",
|
|
266
|
+
"isgraph",
|
|
267
|
+
"islower",
|
|
268
|
+
"isprint",
|
|
269
|
+
"ispunct",
|
|
270
|
+
"isspace",
|
|
271
|
+
"isupper",
|
|
272
|
+
"isxdigit",
|
|
273
|
+
"labs",
|
|
274
|
+
"launder",
|
|
275
|
+
"ldexp",
|
|
276
|
+
"log",
|
|
277
|
+
"log10",
|
|
278
|
+
"make_pair",
|
|
279
|
+
"make_shared",
|
|
280
|
+
"make_shared_for_overwrite",
|
|
281
|
+
"make_tuple",
|
|
282
|
+
"make_unique",
|
|
283
|
+
"malloc",
|
|
284
|
+
"memchr",
|
|
285
|
+
"memcmp",
|
|
286
|
+
"memcpy",
|
|
287
|
+
"memset",
|
|
288
|
+
"modf",
|
|
289
|
+
"move",
|
|
290
|
+
"pow",
|
|
291
|
+
"printf",
|
|
292
|
+
"putchar",
|
|
293
|
+
"puts",
|
|
294
|
+
"realloc",
|
|
295
|
+
"scanf",
|
|
296
|
+
"sin",
|
|
297
|
+
"sinh",
|
|
298
|
+
"snprintf",
|
|
299
|
+
"sprintf",
|
|
300
|
+
"sqrt",
|
|
301
|
+
"sscanf",
|
|
302
|
+
"std",
|
|
303
|
+
"stderr",
|
|
304
|
+
"stdin",
|
|
305
|
+
"stdout",
|
|
306
|
+
"strcat",
|
|
307
|
+
"strchr",
|
|
308
|
+
"strcmp",
|
|
309
|
+
"strcpy",
|
|
310
|
+
"strcspn",
|
|
311
|
+
"strlen",
|
|
312
|
+
"strncat",
|
|
313
|
+
"strncmp",
|
|
314
|
+
"strncpy",
|
|
315
|
+
"strpbrk",
|
|
316
|
+
"strrchr",
|
|
317
|
+
"strspn",
|
|
318
|
+
"strstr",
|
|
319
|
+
"swap",
|
|
320
|
+
"tan",
|
|
321
|
+
"tanh",
|
|
322
|
+
"terminate",
|
|
323
|
+
"to_underlying",
|
|
324
|
+
"tolower",
|
|
325
|
+
"toupper",
|
|
326
|
+
"vfprintf",
|
|
327
|
+
"visit",
|
|
328
|
+
"vprintf",
|
|
329
|
+
"vsprintf"
|
|
330
|
+
];
|
|
331
|
+
const CPP_KEYWORDS = {
|
|
332
|
+
type: RESERVED_TYPES,
|
|
333
|
+
keyword: RESERVED_KEYWORDS,
|
|
334
|
+
literal: [
|
|
335
|
+
"NULL",
|
|
336
|
+
"false",
|
|
337
|
+
"nullopt",
|
|
338
|
+
"nullptr",
|
|
339
|
+
"true"
|
|
340
|
+
],
|
|
341
|
+
built_in: ["_Pragma"],
|
|
342
|
+
_type_hints: TYPE_HINTS
|
|
343
|
+
};
|
|
344
|
+
const FUNCTION_DISPATCH = {
|
|
345
|
+
className: "function.dispatch",
|
|
346
|
+
relevance: 0,
|
|
347
|
+
keywords: { _hint: FUNCTION_HINTS },
|
|
348
|
+
begin: regex.concat(/\b/, `(?!${RESERVED_KEYWORDS.join("|")})`, hljs.IDENT_RE, regex.lookahead(/(<[^<>]+>|)\s*\(/))
|
|
349
|
+
};
|
|
350
|
+
const EXPRESSION_CONTAINS = [
|
|
351
|
+
FUNCTION_DISPATCH,
|
|
352
|
+
PREPROCESSOR,
|
|
353
|
+
CPP_PRIMITIVE_TYPES,
|
|
354
|
+
C_LINE_COMMENT_MODE,
|
|
355
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
356
|
+
NUMBERS,
|
|
357
|
+
STRINGS
|
|
358
|
+
];
|
|
359
|
+
const EXPRESSION_CONTEXT = {
|
|
360
|
+
variants: [
|
|
361
|
+
{
|
|
362
|
+
begin: /=/,
|
|
363
|
+
end: /;/
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
begin: /\(/,
|
|
367
|
+
end: /\)/
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
beginKeywords: "new throw return else",
|
|
371
|
+
end: /;/
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
keywords: CPP_KEYWORDS,
|
|
375
|
+
contains: EXPRESSION_CONTAINS.concat([{
|
|
376
|
+
begin: /\(/,
|
|
377
|
+
end: /\)/,
|
|
378
|
+
keywords: CPP_KEYWORDS,
|
|
379
|
+
contains: EXPRESSION_CONTAINS.concat(["self"]),
|
|
380
|
+
relevance: 0
|
|
381
|
+
}]),
|
|
382
|
+
relevance: 0
|
|
383
|
+
};
|
|
384
|
+
const FUNCTION_DECLARATION = {
|
|
385
|
+
className: "function",
|
|
386
|
+
begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+)+" + FUNCTION_TITLE,
|
|
387
|
+
returnBegin: true,
|
|
388
|
+
end: /[{;=]/,
|
|
389
|
+
excludeEnd: true,
|
|
390
|
+
keywords: CPP_KEYWORDS,
|
|
391
|
+
illegal: /[^\w\s\*&:<>.]/,
|
|
392
|
+
contains: [
|
|
393
|
+
{
|
|
394
|
+
begin: DECLTYPE_AUTO_RE,
|
|
395
|
+
keywords: CPP_KEYWORDS,
|
|
396
|
+
relevance: 0
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
begin: FUNCTION_TITLE,
|
|
400
|
+
returnBegin: true,
|
|
401
|
+
contains: [TITLE_MODE],
|
|
402
|
+
relevance: 0
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
begin: /::/,
|
|
406
|
+
relevance: 0
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
begin: /:/,
|
|
410
|
+
endsWithParent: true,
|
|
411
|
+
contains: [STRINGS, NUMBERS]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
relevance: 0,
|
|
415
|
+
match: /,/
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
className: "params",
|
|
419
|
+
begin: /\(/,
|
|
420
|
+
end: /\)/,
|
|
421
|
+
keywords: CPP_KEYWORDS,
|
|
422
|
+
relevance: 0,
|
|
423
|
+
contains: [
|
|
424
|
+
C_LINE_COMMENT_MODE,
|
|
425
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
426
|
+
STRINGS,
|
|
427
|
+
NUMBERS,
|
|
428
|
+
CPP_PRIMITIVE_TYPES,
|
|
429
|
+
{
|
|
430
|
+
begin: /\(/,
|
|
431
|
+
end: /\)/,
|
|
432
|
+
keywords: CPP_KEYWORDS,
|
|
433
|
+
relevance: 0,
|
|
434
|
+
contains: [
|
|
435
|
+
"self",
|
|
436
|
+
C_LINE_COMMENT_MODE,
|
|
437
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
438
|
+
STRINGS,
|
|
439
|
+
NUMBERS,
|
|
440
|
+
CPP_PRIMITIVE_TYPES
|
|
441
|
+
]
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
CPP_PRIMITIVE_TYPES,
|
|
446
|
+
C_LINE_COMMENT_MODE,
|
|
447
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
448
|
+
PREPROCESSOR
|
|
449
|
+
]
|
|
450
|
+
};
|
|
451
|
+
return {
|
|
452
|
+
name: "C++",
|
|
453
|
+
aliases: [
|
|
454
|
+
"cc",
|
|
455
|
+
"c++",
|
|
456
|
+
"h++",
|
|
457
|
+
"hpp",
|
|
458
|
+
"hh",
|
|
459
|
+
"hxx",
|
|
460
|
+
"cxx"
|
|
461
|
+
],
|
|
462
|
+
keywords: CPP_KEYWORDS,
|
|
463
|
+
illegal: "</",
|
|
464
|
+
classNameAliases: { "function.dispatch": "built_in" },
|
|
465
|
+
contains: [].concat(EXPRESSION_CONTEXT, FUNCTION_DECLARATION, FUNCTION_DISPATCH, EXPRESSION_CONTAINS, [
|
|
466
|
+
PREPROCESSOR,
|
|
467
|
+
{
|
|
468
|
+
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
|
469
|
+
end: ">",
|
|
470
|
+
keywords: CPP_KEYWORDS,
|
|
471
|
+
contains: ["self", CPP_PRIMITIVE_TYPES]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
begin: hljs.IDENT_RE + "::",
|
|
475
|
+
keywords: CPP_KEYWORDS
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
match: [
|
|
479
|
+
/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,
|
|
480
|
+
/\s+/,
|
|
481
|
+
/\w+/
|
|
482
|
+
],
|
|
483
|
+
className: {
|
|
484
|
+
1: "keyword",
|
|
485
|
+
3: "title.class"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
])
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
/** @type LanguageFn */
|
|
492
|
+
function arduino(hljs) {
|
|
493
|
+
const ARDUINO_KW = {
|
|
494
|
+
type: [
|
|
495
|
+
"boolean",
|
|
496
|
+
"byte",
|
|
497
|
+
"word",
|
|
498
|
+
"String"
|
|
499
|
+
],
|
|
500
|
+
built_in: [
|
|
501
|
+
"KeyboardController",
|
|
502
|
+
"MouseController",
|
|
503
|
+
"SoftwareSerial",
|
|
504
|
+
"EthernetServer",
|
|
505
|
+
"EthernetClient",
|
|
506
|
+
"LiquidCrystal",
|
|
507
|
+
"RobotControl",
|
|
508
|
+
"GSMVoiceCall",
|
|
509
|
+
"EthernetUDP",
|
|
510
|
+
"EsploraTFT",
|
|
511
|
+
"HttpClient",
|
|
512
|
+
"RobotMotor",
|
|
513
|
+
"WiFiClient",
|
|
514
|
+
"GSMScanner",
|
|
515
|
+
"FileSystem",
|
|
516
|
+
"Scheduler",
|
|
517
|
+
"GSMServer",
|
|
518
|
+
"YunClient",
|
|
519
|
+
"YunServer",
|
|
520
|
+
"IPAddress",
|
|
521
|
+
"GSMClient",
|
|
522
|
+
"GSMModem",
|
|
523
|
+
"Keyboard",
|
|
524
|
+
"Ethernet",
|
|
525
|
+
"Console",
|
|
526
|
+
"GSMBand",
|
|
527
|
+
"Esplora",
|
|
528
|
+
"Stepper",
|
|
529
|
+
"Process",
|
|
530
|
+
"WiFiUDP",
|
|
531
|
+
"GSM_SMS",
|
|
532
|
+
"Mailbox",
|
|
533
|
+
"USBHost",
|
|
534
|
+
"Firmata",
|
|
535
|
+
"PImage",
|
|
536
|
+
"Client",
|
|
537
|
+
"Server",
|
|
538
|
+
"GSMPIN",
|
|
539
|
+
"FileIO",
|
|
540
|
+
"Bridge",
|
|
541
|
+
"Serial",
|
|
542
|
+
"EEPROM",
|
|
543
|
+
"Stream",
|
|
544
|
+
"Mouse",
|
|
545
|
+
"Audio",
|
|
546
|
+
"Servo",
|
|
547
|
+
"File",
|
|
548
|
+
"Task",
|
|
549
|
+
"GPRS",
|
|
550
|
+
"WiFi",
|
|
551
|
+
"Wire",
|
|
552
|
+
"TFT",
|
|
553
|
+
"GSM",
|
|
554
|
+
"SPI",
|
|
555
|
+
"SD"
|
|
556
|
+
],
|
|
557
|
+
_hints: [
|
|
558
|
+
"setup",
|
|
559
|
+
"loop",
|
|
560
|
+
"runShellCommandAsynchronously",
|
|
561
|
+
"analogWriteResolution",
|
|
562
|
+
"retrieveCallingNumber",
|
|
563
|
+
"printFirmwareVersion",
|
|
564
|
+
"analogReadResolution",
|
|
565
|
+
"sendDigitalPortPair",
|
|
566
|
+
"noListenOnLocalhost",
|
|
567
|
+
"readJoystickButton",
|
|
568
|
+
"setFirmwareVersion",
|
|
569
|
+
"readJoystickSwitch",
|
|
570
|
+
"scrollDisplayRight",
|
|
571
|
+
"getVoiceCallStatus",
|
|
572
|
+
"scrollDisplayLeft",
|
|
573
|
+
"writeMicroseconds",
|
|
574
|
+
"delayMicroseconds",
|
|
575
|
+
"beginTransmission",
|
|
576
|
+
"getSignalStrength",
|
|
577
|
+
"runAsynchronously",
|
|
578
|
+
"getAsynchronously",
|
|
579
|
+
"listenOnLocalhost",
|
|
580
|
+
"getCurrentCarrier",
|
|
581
|
+
"readAccelerometer",
|
|
582
|
+
"messageAvailable",
|
|
583
|
+
"sendDigitalPorts",
|
|
584
|
+
"lineFollowConfig",
|
|
585
|
+
"countryNameWrite",
|
|
586
|
+
"runShellCommand",
|
|
587
|
+
"readStringUntil",
|
|
588
|
+
"rewindDirectory",
|
|
589
|
+
"readTemperature",
|
|
590
|
+
"setClockDivider",
|
|
591
|
+
"readLightSensor",
|
|
592
|
+
"endTransmission",
|
|
593
|
+
"analogReference",
|
|
594
|
+
"detachInterrupt",
|
|
595
|
+
"countryNameRead",
|
|
596
|
+
"attachInterrupt",
|
|
597
|
+
"encryptionType",
|
|
598
|
+
"readBytesUntil",
|
|
599
|
+
"robotNameWrite",
|
|
600
|
+
"readMicrophone",
|
|
601
|
+
"robotNameRead",
|
|
602
|
+
"cityNameWrite",
|
|
603
|
+
"userNameWrite",
|
|
604
|
+
"readJoystickY",
|
|
605
|
+
"readJoystickX",
|
|
606
|
+
"mouseReleased",
|
|
607
|
+
"openNextFile",
|
|
608
|
+
"scanNetworks",
|
|
609
|
+
"noInterrupts",
|
|
610
|
+
"digitalWrite",
|
|
611
|
+
"beginSpeaker",
|
|
612
|
+
"mousePressed",
|
|
613
|
+
"isActionDone",
|
|
614
|
+
"mouseDragged",
|
|
615
|
+
"displayLogos",
|
|
616
|
+
"noAutoscroll",
|
|
617
|
+
"addParameter",
|
|
618
|
+
"remoteNumber",
|
|
619
|
+
"getModifiers",
|
|
620
|
+
"keyboardRead",
|
|
621
|
+
"userNameRead",
|
|
622
|
+
"waitContinue",
|
|
623
|
+
"processInput",
|
|
624
|
+
"parseCommand",
|
|
625
|
+
"printVersion",
|
|
626
|
+
"readNetworks",
|
|
627
|
+
"writeMessage",
|
|
628
|
+
"blinkVersion",
|
|
629
|
+
"cityNameRead",
|
|
630
|
+
"readMessage",
|
|
631
|
+
"setDataMode",
|
|
632
|
+
"parsePacket",
|
|
633
|
+
"isListening",
|
|
634
|
+
"setBitOrder",
|
|
635
|
+
"beginPacket",
|
|
636
|
+
"isDirectory",
|
|
637
|
+
"motorsWrite",
|
|
638
|
+
"drawCompass",
|
|
639
|
+
"digitalRead",
|
|
640
|
+
"clearScreen",
|
|
641
|
+
"serialEvent",
|
|
642
|
+
"rightToLeft",
|
|
643
|
+
"setTextSize",
|
|
644
|
+
"leftToRight",
|
|
645
|
+
"requestFrom",
|
|
646
|
+
"keyReleased",
|
|
647
|
+
"compassRead",
|
|
648
|
+
"analogWrite",
|
|
649
|
+
"interrupts",
|
|
650
|
+
"WiFiServer",
|
|
651
|
+
"disconnect",
|
|
652
|
+
"playMelody",
|
|
653
|
+
"parseFloat",
|
|
654
|
+
"autoscroll",
|
|
655
|
+
"getPINUsed",
|
|
656
|
+
"setPINUsed",
|
|
657
|
+
"setTimeout",
|
|
658
|
+
"sendAnalog",
|
|
659
|
+
"readSlider",
|
|
660
|
+
"analogRead",
|
|
661
|
+
"beginWrite",
|
|
662
|
+
"createChar",
|
|
663
|
+
"motorsStop",
|
|
664
|
+
"keyPressed",
|
|
665
|
+
"tempoWrite",
|
|
666
|
+
"readButton",
|
|
667
|
+
"subnetMask",
|
|
668
|
+
"debugPrint",
|
|
669
|
+
"macAddress",
|
|
670
|
+
"writeGreen",
|
|
671
|
+
"randomSeed",
|
|
672
|
+
"attachGPRS",
|
|
673
|
+
"readString",
|
|
674
|
+
"sendString",
|
|
675
|
+
"remotePort",
|
|
676
|
+
"releaseAll",
|
|
677
|
+
"mouseMoved",
|
|
678
|
+
"background",
|
|
679
|
+
"getXChange",
|
|
680
|
+
"getYChange",
|
|
681
|
+
"answerCall",
|
|
682
|
+
"getResult",
|
|
683
|
+
"voiceCall",
|
|
684
|
+
"endPacket",
|
|
685
|
+
"constrain",
|
|
686
|
+
"getSocket",
|
|
687
|
+
"writeJSON",
|
|
688
|
+
"getButton",
|
|
689
|
+
"available",
|
|
690
|
+
"connected",
|
|
691
|
+
"findUntil",
|
|
692
|
+
"readBytes",
|
|
693
|
+
"exitValue",
|
|
694
|
+
"readGreen",
|
|
695
|
+
"writeBlue",
|
|
696
|
+
"startLoop",
|
|
697
|
+
"IPAddress",
|
|
698
|
+
"isPressed",
|
|
699
|
+
"sendSysex",
|
|
700
|
+
"pauseMode",
|
|
701
|
+
"gatewayIP",
|
|
702
|
+
"setCursor",
|
|
703
|
+
"getOemKey",
|
|
704
|
+
"tuneWrite",
|
|
705
|
+
"noDisplay",
|
|
706
|
+
"loadImage",
|
|
707
|
+
"switchPIN",
|
|
708
|
+
"onRequest",
|
|
709
|
+
"onReceive",
|
|
710
|
+
"changePIN",
|
|
711
|
+
"playFile",
|
|
712
|
+
"noBuffer",
|
|
713
|
+
"parseInt",
|
|
714
|
+
"overflow",
|
|
715
|
+
"checkPIN",
|
|
716
|
+
"knobRead",
|
|
717
|
+
"beginTFT",
|
|
718
|
+
"bitClear",
|
|
719
|
+
"updateIR",
|
|
720
|
+
"bitWrite",
|
|
721
|
+
"position",
|
|
722
|
+
"writeRGB",
|
|
723
|
+
"highByte",
|
|
724
|
+
"writeRed",
|
|
725
|
+
"setSpeed",
|
|
726
|
+
"readBlue",
|
|
727
|
+
"noStroke",
|
|
728
|
+
"remoteIP",
|
|
729
|
+
"transfer",
|
|
730
|
+
"shutdown",
|
|
731
|
+
"hangCall",
|
|
732
|
+
"beginSMS",
|
|
733
|
+
"endWrite",
|
|
734
|
+
"attached",
|
|
735
|
+
"maintain",
|
|
736
|
+
"noCursor",
|
|
737
|
+
"checkReg",
|
|
738
|
+
"checkPUK",
|
|
739
|
+
"shiftOut",
|
|
740
|
+
"isValid",
|
|
741
|
+
"shiftIn",
|
|
742
|
+
"pulseIn",
|
|
743
|
+
"connect",
|
|
744
|
+
"println",
|
|
745
|
+
"localIP",
|
|
746
|
+
"pinMode",
|
|
747
|
+
"getIMEI",
|
|
748
|
+
"display",
|
|
749
|
+
"noBlink",
|
|
750
|
+
"process",
|
|
751
|
+
"getBand",
|
|
752
|
+
"running",
|
|
753
|
+
"beginSD",
|
|
754
|
+
"drawBMP",
|
|
755
|
+
"lowByte",
|
|
756
|
+
"setBand",
|
|
757
|
+
"release",
|
|
758
|
+
"bitRead",
|
|
759
|
+
"prepare",
|
|
760
|
+
"pointTo",
|
|
761
|
+
"readRed",
|
|
762
|
+
"setMode",
|
|
763
|
+
"noFill",
|
|
764
|
+
"remove",
|
|
765
|
+
"listen",
|
|
766
|
+
"stroke",
|
|
767
|
+
"detach",
|
|
768
|
+
"attach",
|
|
769
|
+
"noTone",
|
|
770
|
+
"exists",
|
|
771
|
+
"buffer",
|
|
772
|
+
"height",
|
|
773
|
+
"bitSet",
|
|
774
|
+
"circle",
|
|
775
|
+
"config",
|
|
776
|
+
"cursor",
|
|
777
|
+
"random",
|
|
778
|
+
"IRread",
|
|
779
|
+
"setDNS",
|
|
780
|
+
"endSMS",
|
|
781
|
+
"getKey",
|
|
782
|
+
"micros",
|
|
783
|
+
"millis",
|
|
784
|
+
"begin",
|
|
785
|
+
"print",
|
|
786
|
+
"write",
|
|
787
|
+
"ready",
|
|
788
|
+
"flush",
|
|
789
|
+
"width",
|
|
790
|
+
"isPIN",
|
|
791
|
+
"blink",
|
|
792
|
+
"clear",
|
|
793
|
+
"press",
|
|
794
|
+
"mkdir",
|
|
795
|
+
"rmdir",
|
|
796
|
+
"close",
|
|
797
|
+
"point",
|
|
798
|
+
"yield",
|
|
799
|
+
"image",
|
|
800
|
+
"BSSID",
|
|
801
|
+
"click",
|
|
802
|
+
"delay",
|
|
803
|
+
"read",
|
|
804
|
+
"text",
|
|
805
|
+
"move",
|
|
806
|
+
"peek",
|
|
807
|
+
"beep",
|
|
808
|
+
"rect",
|
|
809
|
+
"line",
|
|
810
|
+
"open",
|
|
811
|
+
"seek",
|
|
812
|
+
"fill",
|
|
813
|
+
"size",
|
|
814
|
+
"turn",
|
|
815
|
+
"stop",
|
|
816
|
+
"home",
|
|
817
|
+
"find",
|
|
818
|
+
"step",
|
|
819
|
+
"tone",
|
|
820
|
+
"sqrt",
|
|
821
|
+
"RSSI",
|
|
822
|
+
"SSID",
|
|
823
|
+
"end",
|
|
824
|
+
"bit",
|
|
825
|
+
"tan",
|
|
826
|
+
"cos",
|
|
827
|
+
"sin",
|
|
828
|
+
"pow",
|
|
829
|
+
"map",
|
|
830
|
+
"abs",
|
|
831
|
+
"max",
|
|
832
|
+
"min",
|
|
833
|
+
"get",
|
|
834
|
+
"run",
|
|
835
|
+
"put"
|
|
836
|
+
],
|
|
837
|
+
literal: [
|
|
838
|
+
"DIGITAL_MESSAGE",
|
|
839
|
+
"FIRMATA_STRING",
|
|
840
|
+
"ANALOG_MESSAGE",
|
|
841
|
+
"REPORT_DIGITAL",
|
|
842
|
+
"REPORT_ANALOG",
|
|
843
|
+
"INPUT_PULLUP",
|
|
844
|
+
"SET_PIN_MODE",
|
|
845
|
+
"INTERNAL2V56",
|
|
846
|
+
"SYSTEM_RESET",
|
|
847
|
+
"LED_BUILTIN",
|
|
848
|
+
"INTERNAL1V1",
|
|
849
|
+
"SYSEX_START",
|
|
850
|
+
"INTERNAL",
|
|
851
|
+
"EXTERNAL",
|
|
852
|
+
"DEFAULT",
|
|
853
|
+
"OUTPUT",
|
|
854
|
+
"INPUT",
|
|
855
|
+
"HIGH",
|
|
856
|
+
"LOW"
|
|
857
|
+
]
|
|
858
|
+
};
|
|
859
|
+
const ARDUINO = cPlusPlus(hljs);
|
|
860
|
+
const kws = ARDUINO.keywords;
|
|
861
|
+
kws.type = [...kws.type, ...ARDUINO_KW.type];
|
|
862
|
+
kws.literal = [...kws.literal, ...ARDUINO_KW.literal];
|
|
863
|
+
kws.built_in = [...kws.built_in, ...ARDUINO_KW.built_in];
|
|
864
|
+
kws._hints = ARDUINO_KW._hints;
|
|
865
|
+
ARDUINO.name = "Arduino";
|
|
866
|
+
ARDUINO.aliases = ["ino"];
|
|
867
|
+
ARDUINO.supersetOf = "cpp";
|
|
868
|
+
return ARDUINO;
|
|
869
|
+
}
|
|
870
|
+
//#endregion
|
|
871
|
+
export { arduino as default };
|