tm-grammars 0.0.0
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/LICENSE +22 -0
- package/NOTICE +6565 -0
- package/README.md +211 -0
- package/grammars/abap.json +380 -0
- package/grammars/actionscript-3.json +951 -0
- package/grammars/ada.json +3874 -0
- package/grammars/apache.json +562 -0
- package/grammars/apex.json +3203 -0
- package/grammars/apl.json +1479 -0
- package/grammars/applescript.json +1406 -0
- package/grammars/ara.json +428 -0
- package/grammars/asm.json +1741 -0
- package/grammars/astro.json +776 -0
- package/grammars/awk.json +388 -0
- package/grammars/ballerina.json +3768 -0
- package/grammars/bat.json +783 -0
- package/grammars/beancount.json +831 -0
- package/grammars/berry.json +172 -0
- package/grammars/bibtex.json +315 -0
- package/grammars/bicep.json +239 -0
- package/grammars/blade.json +3870 -0
- package/grammars/c.json +3552 -0
- package/grammars/cadence.json +738 -0
- package/grammars/clarity.json +877 -0
- package/grammars/clojure.json +426 -0
- package/grammars/cmake.json +143 -0
- package/grammars/cobol.json +1124 -0
- package/grammars/codeql.json +1540 -0
- package/grammars/coffee.json +1311 -0
- package/grammars/cpp-macro.json +9498 -0
- package/grammars/cpp.json +16635 -0
- package/grammars/crystal.json +1866 -0
- package/grammars/csharp.json +5722 -0
- package/grammars/css.json +1860 -0
- package/grammars/csv.json +46 -0
- package/grammars/cue.json +1128 -0
- package/grammars/cypher.json +353 -0
- package/grammars/d.json +3185 -0
- package/grammars/dart.json +522 -0
- package/grammars/dax.json +185 -0
- package/grammars/diff.json +155 -0
- package/grammars/docker.json +97 -0
- package/grammars/dream-maker.json +640 -0
- package/grammars/elixir.json +1014 -0
- package/grammars/elm.json +751 -0
- package/grammars/erb.json +156 -0
- package/grammars/erlang.json +1757 -0
- package/grammars/fish.json +189 -0
- package/grammars/fsharp.json +1831 -0
- package/grammars/gdresource.json +290 -0
- package/grammars/gdscript.json +969 -0
- package/grammars/gdshader.json +405 -0
- package/grammars/gherkin.json +133 -0
- package/grammars/git-commit.json +85 -0
- package/grammars/git-rebase.json +56 -0
- package/grammars/glimmer-js.json +98 -0
- package/grammars/glimmer-ts.json +98 -0
- package/grammars/glsl.json +57 -0
- package/grammars/gnuplot.json +892 -0
- package/grammars/go.json +1012 -0
- package/grammars/graphql.json +1295 -0
- package/grammars/groovy.json +1378 -0
- package/grammars/hack.json +2650 -0
- package/grammars/haml.json +598 -0
- package/grammars/handlebars.json +848 -0
- package/grammars/haskell.json +2431 -0
- package/grammars/hcl.json +787 -0
- package/grammars/hjson.json +821 -0
- package/grammars/hlsl.json +212 -0
- package/grammars/html.json +93 -0
- package/grammars/imba.json +2696 -0
- package/grammars/ini.json +108 -0
- package/grammars/java.json +1885 -0
- package/grammars/javascript.json +5984 -0
- package/grammars/jinja-html.json +16 -0
- package/grammars/jinja.json +345 -0
- package/grammars/jison.json +715 -0
- package/grammars/jsdoc.json +21 -0
- package/grammars/json.json +208 -0
- package/grammars/json5.json +244 -0
- package/grammars/jsonc.json +208 -0
- package/grammars/jsonl.json +208 -0
- package/grammars/jsonnet.json +211 -0
- package/grammars/jssm.json +159 -0
- package/grammars/jsx.json +5984 -0
- package/grammars/julia.json +1061 -0
- package/grammars/kotlin.json +580 -0
- package/grammars/kusto.json +687 -0
- package/grammars/latex.json +2395 -0
- package/grammars/less.json +5012 -0
- package/grammars/liquid.json +990 -0
- package/grammars/lisp.json +121 -0
- package/grammars/logo.json +55 -0
- package/grammars/lua.json +956 -0
- package/grammars/make.json +629 -0
- package/grammars/markdown.json +3066 -0
- package/grammars/marko.json +1344 -0
- package/grammars/matlab.json +1131 -0
- package/grammars/mdc.json +571 -0
- package/grammars/mdx.json +5629 -0
- package/grammars/mermaid.json +1382 -0
- package/grammars/mojo.json +4153 -0
- package/grammars/narrat.json +227 -0
- package/grammars/nextflow.json +298 -0
- package/grammars/nginx.json +2121 -0
- package/grammars/nim.json +1522 -0
- package/grammars/nix.json +1200 -0
- package/grammars/nushell.json +1047 -0
- package/grammars/objective-c.json +3750 -0
- package/grammars/objective-cpp.json +7242 -0
- package/grammars/ocaml.json +2967 -0
- package/grammars/pascal.json +154 -0
- package/grammars/perl.json +2971 -0
- package/grammars/php.json +4024 -0
- package/grammars/plsql.json +241 -0
- package/grammars/postcss.json +377 -0
- package/grammars/powerquery.json +349 -0
- package/grammars/powershell.json +1024 -0
- package/grammars/prisma.json +443 -0
- package/grammars/prolog.json +298 -0
- package/grammars/proto.json +507 -0
- package/grammars/pug.json +1033 -0
- package/grammars/puppet.json +777 -0
- package/grammars/purescript.json +871 -0
- package/grammars/python.json +4208 -0
- package/grammars/r.json +637 -0
- package/grammars/raku.json +310 -0
- package/grammars/razor.json +1813 -0
- package/grammars/reg.json +136 -0
- package/grammars/rel.json +200 -0
- package/grammars/riscv.json +298 -0
- package/grammars/rst.json +734 -0
- package/grammars/ruby.json +2769 -0
- package/grammars/rust.json +1171 -0
- package/grammars/sas.json +302 -0
- package/grammars/sass.json +618 -0
- package/grammars/scala.json +1313 -0
- package/grammars/scheme.json +384 -0
- package/grammars/scss.json +1874 -0
- package/grammars/shaderlab.json +199 -0
- package/grammars/shellscript.json +2025 -0
- package/grammars/shellsession.json +33 -0
- package/grammars/smalltalk.json +235 -0
- package/grammars/solidity.json +1210 -0
- package/grammars/sparql.json +45 -0
- package/grammars/splunk.json +91 -0
- package/grammars/sql.json +631 -0
- package/grammars/ssh-config.json +88 -0
- package/grammars/stata.json +3050 -0
- package/grammars/stylus.json +1208 -0
- package/grammars/svelte.json +1171 -0
- package/grammars/swift.json +4203 -0
- package/grammars/system-verilog.json +1063 -0
- package/grammars/tasl.json +292 -0
- package/grammars/tcl.json +291 -0
- package/grammars/tex.json +281 -0
- package/grammars/toml.json +431 -0
- package/grammars/tsx.json +5984 -0
- package/grammars/turtle.json +261 -0
- package/grammars/twig.json +1394 -0
- package/grammars/typescript.json +5735 -0
- package/grammars/v.json +1001 -0
- package/grammars/vb.json +232 -0
- package/grammars/verilog.json +305 -0
- package/grammars/vhdl.json +1484 -0
- package/grammars/viml.json +445 -0
- package/grammars/vue-html.json +559 -0
- package/grammars/vue.json +1237 -0
- package/grammars/vyper.json +5415 -0
- package/grammars/wasm.json +831 -0
- package/grammars/wenyan.json +129 -0
- package/grammars/wgsl.json +391 -0
- package/grammars/wolfram.json +2370 -0
- package/grammars/xml.json +382 -0
- package/grammars/xsl.json +89 -0
- package/grammars/yaml.json +616 -0
- package/grammars/zenscript.json +257 -0
- package/grammars/zig.json +312 -0
- package/index.d.ts +18 -0
- package/index.js +2165 -0
- package/package.json +46 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Prolog",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"pl",
|
|
5
|
+
"pro"
|
|
6
|
+
],
|
|
7
|
+
"name": "prolog",
|
|
8
|
+
"patterns": [
|
|
9
|
+
{
|
|
10
|
+
"include": "#comments"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"begin": "(?<=:-)\\s*",
|
|
14
|
+
"end": "(\\.)",
|
|
15
|
+
"endCaptures": {
|
|
16
|
+
"1": {
|
|
17
|
+
"name": "keyword.control.clause.bodyend.prolog"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"name": "meta.clause.body.prolog",
|
|
21
|
+
"patterns": [
|
|
22
|
+
{
|
|
23
|
+
"include": "#comments"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"include": "#builtin"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"include": "#controlandkeywords"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"include": "#atom"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"include": "#variable"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"include": "#constants"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"match": ".",
|
|
42
|
+
"name": "meta.clause.body.prolog"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"begin": "^\\s*([a-z][a-zA-Z0-9_]*)(\\(?)(?=.*:-.*)",
|
|
48
|
+
"beginCaptures": {
|
|
49
|
+
"1": {
|
|
50
|
+
"name": "entity.name.function.clause.prolog"
|
|
51
|
+
},
|
|
52
|
+
"2": {
|
|
53
|
+
"name": "punctuation.definition.parameters.begin"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"end": "((\\)?))\\s*(:-)",
|
|
57
|
+
"endCaptures": {
|
|
58
|
+
"1": {
|
|
59
|
+
"name": "punctuation.definition.parameters.end"
|
|
60
|
+
},
|
|
61
|
+
"3": {
|
|
62
|
+
"name": "keyword.control.clause.bodybegin.prolog"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"name": "meta.clause.head.prolog",
|
|
66
|
+
"patterns": [
|
|
67
|
+
{
|
|
68
|
+
"include": "#atom"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"include": "#variable"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"include": "#constants"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"begin": "^\\s*([a-z][a-zA-Z0-9_]*)(\\(?)(?=.*-->.*)",
|
|
80
|
+
"beginCaptures": {
|
|
81
|
+
"1": {
|
|
82
|
+
"name": "entity.name.function.dcg.prolog"
|
|
83
|
+
},
|
|
84
|
+
"2": {
|
|
85
|
+
"name": "punctuation.definition.parameters.begin"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"end": "((\\)?))\\s*(-->)",
|
|
89
|
+
"endCaptures": {
|
|
90
|
+
"1": {
|
|
91
|
+
"name": "punctuation.definition.parameters.end"
|
|
92
|
+
},
|
|
93
|
+
"3": {
|
|
94
|
+
"name": "keyword.control.dcg.bodybegin.prolog"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"name": "meta.dcg.head.prolog",
|
|
98
|
+
"patterns": [
|
|
99
|
+
{
|
|
100
|
+
"include": "#atom"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"include": "#variable"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"include": "#constants"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"begin": "(?<=-->)\\s*",
|
|
112
|
+
"end": "(\\.)",
|
|
113
|
+
"endCaptures": {
|
|
114
|
+
"1": {
|
|
115
|
+
"name": "keyword.control.dcg.bodyend.prolog"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"name": "meta.dcg.body.prolog",
|
|
119
|
+
"patterns": [
|
|
120
|
+
{
|
|
121
|
+
"include": "#comments"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"include": "#controlandkeywords"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"include": "#atom"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"include": "#variable"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"include": "#constants"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"match": ".",
|
|
137
|
+
"name": "meta.dcg.body.prolog"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"begin": "^\\s*([a-zA-Z][a-zA-Z0-9_]*)(\\(?)(?!.*(:-|-->).*)",
|
|
143
|
+
"beginCaptures": {
|
|
144
|
+
"1": {
|
|
145
|
+
"name": "entity.name.function.fact.prolog"
|
|
146
|
+
},
|
|
147
|
+
"2": {
|
|
148
|
+
"name": "punctuation.definition.parameters.begin"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"end": "((\\)?))\\s*(\\.)(?!\\d+)",
|
|
152
|
+
"endCaptures": {
|
|
153
|
+
"1": {
|
|
154
|
+
"name": "punctuation.definition.parameters.end"
|
|
155
|
+
},
|
|
156
|
+
"3": {
|
|
157
|
+
"name": "keyword.control.fact.end.prolog"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"name": "meta.fact.prolog",
|
|
161
|
+
"patterns": [
|
|
162
|
+
{
|
|
163
|
+
"include": "#comments"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"include": "#atom"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"include": "#variable"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"include": "#constants"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"repository": {
|
|
178
|
+
"atom": {
|
|
179
|
+
"patterns": [
|
|
180
|
+
{
|
|
181
|
+
"match": "(?<![a-zA-Z0-9_])[a-z][a-zA-Z0-9_]*(?!\\s*\\(|[a-zA-Z0-9_])",
|
|
182
|
+
"name": "constant.other.atom.simple.prolog"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"match": "'.*?'",
|
|
186
|
+
"name": "constant.other.atom.quoted.prolog"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"match": "\\[\\]",
|
|
190
|
+
"name": "constant.other.atom.emptylist.prolog"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"builtin": {
|
|
195
|
+
"patterns": [
|
|
196
|
+
{
|
|
197
|
+
"match": "\\b(op|nl|fail|dynamic|discontiguous|initialization|meta_predicate|module_transparent|multifile|public|thread_local|thread_initialization|volatile)\\b",
|
|
198
|
+
"name": "keyword.other"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"match": "\\b(abolish|abort|abs|absolute_file_name|access_file|acos|acosh|acyclic_term|add_import_module|append|apropos|arg|asin|asinh|assert|asserta|assertz|at_end_of_stream|at_halt|atan|atanh|atom|atom_chars|atom_codes|atom_concat|atom_length|atom_number|atom_prefix|atom_string|atom_to_stem_list|atom_to_term|atomic|atomic_concat|atomic_list_concat|atomics_to_string|attach_packs|attr_portray_hook|attr_unify_hook|attribute_goals|attvar|autoload|autoload_path|b_getval|b_set_dict|b_setval|bagof|begin_tests|between|blob|break|byte_count|call_dcg|call_residue_vars|callable|cancel_halt|catch|ceil|ceiling|char_code|char_conversion|char_type|character_count|chdir|chr_leash|chr_notrace|chr_show_store|chr_trace|clause|clause_property|close|close_dde_conversation|close_table|code_type|collation_key|compare|compare_strings|compile_aux_clauses|compile_predicates|compiling|compound|compound_name_arguments|compound_name_arity|consult|context_module|copy_predicate_clauses|copy_stream_data|copy_term|copy_term_nat|copysign|cos|cosh|cputime|create_prolog_flag|current_arithmetic_function|current_atom|current_blob|current_char_conversion|current_engine|current_flag|current_format_predicate|current_functor|current_input|current_key|current_locale|current_module|current_op|current_output|current_predicate|current_prolog_flag|current_signal|current_stream|current_trie|cyclic_term|date_time_stamp|date_time_value|day_of_the_week|dcg_translate_rule|dde_current_connection|dde_current_service|dde_execute|dde_poke|dde_register_service|dde_request|dde_unregister_service|debug|debugging|default_module|del_attr|del_attrs|del_dict|delete_directory|delete_file|delete_import_module|deterministic|dict_create|dict_pairs|dif|directory_files|divmod|doc_browser|doc_collect|doc_load_library|doc_server|double_metaphone|downcase_atom|dtd|dtd_property|duplicate_term|dwim_match|dwim_predicate|e|edit|encoding|engine_create|engine_fetch|engine_next|engine_next_reified|engine_post|engine_self|engine_yield|ensure_loaded|epsilon|erase|erf|erfc|eval|exception|exists_directory|exists_file|exists_source|exp|expand_answer|expand_file_name|expand_file_search_path|expand_goal|expand_query|expand_term|explain|fast_read|fast_term_serialized|fast_write|file_base_name|file_directory_name|file_name_extension|file_search_path|fill_buffer|find_chr_constraint|findall|findnsols|flag|float|float_fractional_part|float_integer_part|floor|flush_output|forall|format|format_predicate|format_time|free_dtd|free_sgml_parser|free_table|freeze|frozen|functor|garbage_collect|garbage_collect_atoms|garbage_collect_clauses|gdebug|get|get_attr|get_attrs|get_byte|get_char|get_code|get_dict|get_flag|get_sgml_parser|get_single_char|get_string_code|get_table_attribute|get_time|getbit|getenv|goal_expansion|ground|gspy|gtrace|guitracer|gxref|gzopen|halt|help|import_module|in_pce_thread|in_pce_thread_sync|in_table|include|inf|instance|integer|iri_xml_namespace|is_absolute_file_name|is_dict|is_engine|is_list|is_stream|is_thread|keysort|known_licenses|leash|length|lgamma|library_directory|license|line_count|line_position|list_strings|listing|load_dtd|load_files|load_html|load_rdf|load_sgml|load_structure|load_test_files|load_xml|locale_create|locale_destroy|locale_property|locale_sort|log|lsb|make|make_directory|make_library_index|max|memberchk|message_hook|message_property|message_queue_create|message_queue_destroy|message_queue_property|message_to_string|min|module|module_property|msb|msort|mutex_create|mutex_destroy|mutex_lock|mutex_property|mutex_statistics|mutex_trylock|mutex_unlock|name|nan|nb_current|nb_delete|nb_getval|nb_link_dict|nb_linkarg|nb_linkval|nb_set_dict|nb_setarg|nb_setval|new_dtd|new_order_table|new_sgml_parser|new_table|nl|nodebug|noguitracer|nonvar|noprotocol|normalize_space|nospy|nospyall|notrace|nth_clause|nth_integer_root_and_remainder|number|number_chars|number_codes|number_string|numbervars|odbc_close_statement|odbc_connect|odbc_current_connection|odbc_current_table|odbc_data_source|odbc_debug|odbc_disconnect|odbc_driver_connect|odbc_end_transaction|odbc_execute|odbc_fetch|odbc_free_statement|odbc_get_connection|odbc_prepare|odbc_query|odbc_set_connection|odbc_statistics|odbc_table_column|odbc_table_foreign_key|odbc_table_primary_key|odbc_type|on_signal|op|open|open_dde_conversation|open_dtd|open_null_stream|open_resource|open_string|open_table|order_table_mapping|parse_time|passed|pce_dispatch|pdt_install_console|peek_byte|peek_char|peek_code|peek_string|phrase|plus|popcount|porter_stem|portray|portray_clause|powm|predicate_property|predsort|prefix_string|print|print_message|print_message_lines|process_rdf|profile|profiler|project_attributes|prolog|prolog_choice_attribute|prolog_current_choice|prolog_current_frame|prolog_cut_to|prolog_debug|prolog_exception_hook|prolog_file_type|prolog_frame_attribute|prolog_ide|prolog_list_goal|prolog_load_context|prolog_load_file|prolog_nodebug|prolog_skip_frame|prolog_skip_level|prolog_stack_property|prolog_to_os_filename|prolog_trace_interception|prompt|protocol|protocola|protocolling|put|put_attr|put_attrs|put_byte|put_char|put_code|put_dict|qcompile|qsave_program|random|random_float|random_property|rational|rationalize|rdf_write_xml|read|read_clause|read_history|read_link|read_pending_chars|read_pending_codes|read_string|read_table_fields|read_table_record|read_table_record_data|read_term|read_term_from_atom|recorda|recorded|recordz|redefine_system_predicate|reexport|reload_library_index|rename_file|require|reset|reset_profiler|resource|retract|retractall|round|run_tests|running_tests|same_file|same_term|see|seeing|seek|seen|select_dict|set_end_of_stream|set_flag|set_input|set_locale|set_module|set_output|set_prolog_IO|set_prolog_flag|set_prolog_stack|set_random|set_sgml_parser|set_stream|set_stream_position|set_test_options|setarg|setenv|setlocale|setof|sgml_parse|shell|shift|show_coverage|show_profile|sign|sin|sinh|size_file|skip|sleep|sort|source_exports|source_file|source_file_property|source_location|split_string|spy|sqrt|stamp_date_time|statistics|stream_pair|stream_position_data|stream_property|string|string_chars|string_code|string_codes|string_concat|string_length|string_lower|string_upper|strip_module|style_check|sub_atom|sub_atom_icasechk|sub_string|subsumes_term|succ|suite|swritef|tab|table_previous_record|table_start_of_record|table_version|table_window|tan|tanh|tell|telling|term_attvars|term_expansion|term_hash|term_string|term_subsumer|term_to_atom|term_variables|test|test_report|text_to_string|thread_at_exit|thread_create|thread_detach|thread_exit|thread_get_message|thread_join|thread_message_hook|thread_peek_message|thread_property|thread_self|thread_send_message|thread_setconcurrency|thread_signal|thread_statistics|throw|time|time_file|tmp_file|tmp_file_stream|tokenize_atom|told|trace|tracing|trie_destroy|trie_gen|trie_insert|trie_insert_new|trie_lookup|trie_new|trie_property|trie_term|trim_stacks|truncate|tty_get_capability|tty_goto|tty_put|tty_size|ttyflush|unaccent_atom|unifiable|unify_with_occurs_check|unix|unknown|unload_file|unsetenv|upcase_atom|use_module|var|var_number|var_property|variant_hash|version|visible|wait_for_input|when|wildcard_match|win_add_dll_directory|win_exec|win_folder|win_has_menu|win_insert_menu|win_insert_menu_item|win_registry_get_value|win_remove_dll_directory|win_shell|win_window_pos|window_title|with_mutex|with_output_to|working_directory|write|write_canonical|write_length|write_term|writef|writeln|writeq|xml_is_dom|xml_to_rdf|zopen)\\b",
|
|
202
|
+
"name": "support.function.builtin.prolog"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"comments": {
|
|
207
|
+
"patterns": [
|
|
208
|
+
{
|
|
209
|
+
"match": "%.*",
|
|
210
|
+
"name": "comment.line.percent-sign.prolog"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"begin": "/\\*",
|
|
214
|
+
"captures": {
|
|
215
|
+
"0": {
|
|
216
|
+
"name": "punctuation.definition.comment.prolog"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"end": "\\*/",
|
|
220
|
+
"name": "comment.block.prolog"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
"constants": {
|
|
225
|
+
"patterns": [
|
|
226
|
+
{
|
|
227
|
+
"match": "(?<![a-zA-Z]|/)(\\d+|(\\d+\\.\\d+))",
|
|
228
|
+
"name": "constant.numeric.integer.prolog"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"match": "\".*?\"",
|
|
232
|
+
"name": "string.quoted.double.prolog"
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"controlandkeywords": {
|
|
237
|
+
"patterns": [
|
|
238
|
+
{
|
|
239
|
+
"begin": "(->)",
|
|
240
|
+
"beginCaptures": {
|
|
241
|
+
"1": {
|
|
242
|
+
"name": "keyword.control.if.prolog"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"end": "(;)",
|
|
246
|
+
"endCaptures": {
|
|
247
|
+
"1": {
|
|
248
|
+
"name": "keyword.control.else.prolog"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"name": "meta.if.prolog",
|
|
252
|
+
"patterns": [
|
|
253
|
+
{
|
|
254
|
+
"include": "$self"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"include": "#builtin"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"include": "#comments"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"include": "#atom"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"include": "#variable"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"match": ".",
|
|
270
|
+
"name": "meta.if.body.prolog"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"match": "!",
|
|
276
|
+
"name": "keyword.control.cut.prolog"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"match": "(\\s(is)\\s)|=:=|=\\.\\.|=?\\\\?=|\\\\\\+|@?>|@?=?<|\\+|\\*|\\-",
|
|
280
|
+
"name": "keyword.operator.prolog"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
"variable": {
|
|
285
|
+
"patterns": [
|
|
286
|
+
{
|
|
287
|
+
"match": "(?<![a-zA-Z0-9_])[A-Z][a-zA-Z0-9_]*",
|
|
288
|
+
"name": "variable.parameter.uppercase.prolog"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"match": "(?<!\\w)_",
|
|
292
|
+
"name": "variable.language.anonymous.prolog"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"scopeName": "source.prolog"
|
|
298
|
+
}
|