@canopycanopycanopy/b-ber-markdown-renderer 3.0.0 → 3.0.2
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/dist/highlightjs/highlight.js +50 -201
- package/dist/highlightjs/index.js +1 -1
- package/dist/highlightjs/languages/1c.js +91 -46
- package/dist/highlightjs/languages/accesslog.js +10 -5
- package/dist/highlightjs/languages/ada.js +26 -12
- package/dist/highlightjs/languages/angelscript.js +12 -5
- package/dist/highlightjs/languages/applescript.js +1 -4
- package/dist/highlightjs/languages/arcade.js +1 -4
- package/dist/highlightjs/languages/armasm.js +35 -16
- package/dist/highlightjs/languages/asciidoc.js +42 -21
- package/dist/highlightjs/languages/autohotkey.js +2 -2
- package/dist/highlightjs/languages/autoit.js +82 -82
- package/dist/highlightjs/languages/avrasm.js +7 -9
- package/dist/highlightjs/languages/bash.js +9 -5
- package/dist/highlightjs/languages/bnf.js +6 -3
- package/dist/highlightjs/languages/cal.js +0 -3
- package/dist/highlightjs/languages/capnproto.js +0 -2
- package/dist/highlightjs/languages/ceylon.js +4 -7
- package/dist/highlightjs/languages/clojure.js +2 -1
- package/dist/highlightjs/languages/cmake.js +10 -5
- package/dist/highlightjs/languages/coffeescript.js +10 -10
- package/dist/highlightjs/languages/cos.js +6 -2
- package/dist/highlightjs/languages/cpp.js +4 -4
- package/dist/highlightjs/languages/crystal.js +0 -4
- package/dist/highlightjs/languages/cs.js +4 -2
- package/dist/highlightjs/languages/d.js +34 -29
- package/dist/highlightjs/languages/dart.js +4 -3
- package/dist/highlightjs/languages/delphi.js +0 -3
- package/dist/highlightjs/languages/dns.js +4 -2
- package/dist/highlightjs/languages/dos.js +2 -1
- package/dist/highlightjs/languages/ebnf.js +2 -1
- package/dist/highlightjs/languages/elm.js +7 -2
- package/dist/highlightjs/languages/erlang.js +9 -6
- package/dist/highlightjs/languages/excel.js +2 -5
- package/dist/highlightjs/languages/gams.js +6 -3
- package/dist/highlightjs/languages/gauss.js +2 -6
- package/dist/highlightjs/languages/gcode.js +0 -3
- package/dist/highlightjs/languages/glsl.js +10 -5
- package/dist/highlightjs/languages/go.js +0 -1
- package/dist/highlightjs/languages/groovy.js +4 -2
- package/dist/highlightjs/languages/haml.js +4 -2
- package/dist/highlightjs/languages/haskell.js +9 -3
- package/dist/highlightjs/languages/hy.js +2 -1
- package/dist/highlightjs/languages/inform7.js +8 -4
- package/dist/highlightjs/languages/irpf90.js +4 -2
- package/dist/highlightjs/languages/isbl.js +292 -148
- package/dist/highlightjs/languages/java.js +8 -4
- package/dist/highlightjs/languages/javascript.js +3 -6
- package/dist/highlightjs/languages/json.js +0 -2
- package/dist/highlightjs/languages/julia.js +12 -5
- package/dist/highlightjs/languages/kotlin.js +15 -8
- package/dist/highlightjs/languages/lasso.js +0 -3
- package/dist/highlightjs/languages/less.js +20 -17
- package/dist/highlightjs/languages/livecodeserver.js +0 -3
- package/dist/highlightjs/languages/livescript.js +8 -9
- package/dist/highlightjs/languages/llvm.js +4 -2
- package/dist/highlightjs/languages/lua.js +6 -6
- package/dist/highlightjs/languages/makefile.js +0 -5
- package/dist/highlightjs/languages/markdown.js +18 -9
- package/dist/highlightjs/languages/mercury.js +4 -2
- package/dist/highlightjs/languages/mipsasm.js +37 -18
- package/dist/highlightjs/languages/mojolicious.js +4 -2
- package/dist/highlightjs/languages/moonscript.js +5 -8
- package/dist/highlightjs/languages/nginx.js +12 -6
- package/dist/highlightjs/languages/ocaml.js +3 -8
- package/dist/highlightjs/languages/openscad.js +39 -39
- package/dist/highlightjs/languages/perl.js +3 -3
- package/dist/highlightjs/languages/pgsql.js +128 -72
- package/dist/highlightjs/languages/php.js +0 -1
- package/dist/highlightjs/languages/pony.js +1 -0
- package/dist/highlightjs/languages/powershell.js +5 -8
- package/dist/highlightjs/languages/processing.js +2 -1
- package/dist/highlightjs/languages/prolog.js +1 -3
- package/dist/highlightjs/languages/properties.js +8 -5
- package/dist/highlightjs/languages/protobuf.js +0 -1
- package/dist/highlightjs/languages/puppet.js +4 -8
- package/dist/highlightjs/languages/purebasic.js +9 -5
- package/dist/highlightjs/languages/python.js +0 -1
- package/dist/highlightjs/languages/qml.js +15 -11
- package/dist/highlightjs/languages/reasonml.js +0 -6
- package/dist/highlightjs/languages/roboconf.js +8 -4
- package/dist/highlightjs/languages/routeros.js +36 -18
- package/dist/highlightjs/languages/ruby.js +0 -4
- package/dist/highlightjs/languages/ruleslanguage.js +2 -1
- package/dist/highlightjs/languages/rust.js +8 -4
- package/dist/highlightjs/languages/sas.js +4 -2
- package/dist/highlightjs/languages/scala.js +2 -1
- package/dist/highlightjs/languages/scheme.js +0 -3
- package/dist/highlightjs/languages/scilab.js +2 -4
- package/dist/highlightjs/languages/sml.js +2 -6
- package/dist/highlightjs/languages/sqf.js +8 -5
- package/dist/highlightjs/languages/stan.js +2 -1
- package/dist/highlightjs/languages/stylus.js +45 -24
- package/dist/highlightjs/languages/swift.js +4 -3
- package/dist/highlightjs/languages/tap.js +8 -4
- package/dist/highlightjs/languages/thrift.js +0 -1
- package/dist/highlightjs/languages/tp.js +1 -3
- package/dist/highlightjs/languages/twig.js +0 -3
- package/dist/highlightjs/languages/typescript.js +0 -3
- package/dist/highlightjs/languages/vala.js +12 -6
- package/dist/highlightjs/languages/vbnet.js +12 -27
- package/dist/highlightjs/languages/verilog.js +1 -2
- package/dist/highlightjs/languages/vhdl.js +8 -5
- package/dist/highlightjs/languages/vim.js +6 -3
- package/dist/highlightjs/languages/x86asm.js +52 -26
- package/dist/highlightjs/languages/xml.js +2 -2
- package/dist/highlightjs/languages/xquery.js +12 -7
- package/dist/highlightjs/languages/yaml.js +3 -1
- package/dist/highlightjs/languages/zephir.js +0 -1
- package/dist/index.js +9 -36
- package/package.json +17 -17
|
@@ -5,24 +5,22 @@ module.exports = function (hljs) {
|
|
|
5
5
|
case_insensitive: true,
|
|
6
6
|
lexemes: '\\.?' + hljs.IDENT_RE,
|
|
7
7
|
keywords: {
|
|
8
|
-
keyword:
|
|
9
|
-
/* mnemonic */
|
|
8
|
+
keyword: /* mnemonic */
|
|
10
9
|
'adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs ' + 'brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr ' + 'clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor ' + 'fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul ' + 'muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs ' + 'sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub ' + 'subi swap tst wdr',
|
|
11
|
-
built_in:
|
|
12
|
-
/*
|
|
13
|
-
'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 ' + 'r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ' +
|
|
14
|
-
/* IO Registers (ATMega128) */
|
|
10
|
+
built_in: /* general purpose registers */
|
|
11
|
+
'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 ' + 'r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ' + /* IO Registers (ATMega128) */
|
|
15
12
|
'ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h ' + 'tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ' + 'ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ' + 'ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk ' + 'tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ' + 'ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr ' + 'porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ' + 'ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf',
|
|
16
13
|
meta: '.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list ' + '.listmac .macro .nolist .org .set'
|
|
17
14
|
},
|
|
18
15
|
contains: [hljs.C_BLOCK_COMMENT_MODE, hljs.COMMENT(';', '$', {
|
|
19
16
|
relevance: 0
|
|
20
|
-
}), hljs.C_NUMBER_MODE,
|
|
21
|
-
|
|
17
|
+
}), hljs.C_NUMBER_MODE,
|
|
18
|
+
// 0x..., decimal, float
|
|
19
|
+
hljs.BINARY_NUMBER_MODE,
|
|
20
|
+
// 0b...
|
|
22
21
|
{
|
|
23
22
|
className: 'number',
|
|
24
23
|
begin: '\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)' // $..., 0o...
|
|
25
|
-
|
|
26
24
|
}, hljs.QUOTE_STRING_MODE, {
|
|
27
25
|
className: 'string',
|
|
28
26
|
begin: '\'',
|
|
@@ -35,15 +35,19 @@ module.exports = function (hljs) {
|
|
|
35
35
|
keywords: {
|
|
36
36
|
keyword: 'if then else elif fi for while in do done case esac function',
|
|
37
37
|
literal: 'true false',
|
|
38
|
-
built_in:
|
|
38
|
+
built_in:
|
|
39
|
+
// Shell built-ins
|
|
39
40
|
// http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
40
|
-
'break cd continue eval exec exit export getopts hash pwd readonly return shift test times ' + 'trap umask unset ' +
|
|
41
|
-
|
|
42
|
-
'
|
|
41
|
+
'break cd continue eval exec exit export getopts hash pwd readonly return shift test times ' + 'trap umask unset ' +
|
|
42
|
+
// Bash built-ins
|
|
43
|
+
'alias bind builtin caller command declare echo enable help let local logout mapfile printf ' + 'read readarray source type typeset ulimit unalias ' +
|
|
44
|
+
// Shell modifiers
|
|
45
|
+
'set shopt ' +
|
|
46
|
+
// Zsh built-ins
|
|
43
47
|
'autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles ' + 'compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate ' + 'fc fg float functions getcap getln history integer jobs kill limit log noglob popd print ' + 'pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit ' + 'unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof ' + 'zpty zregexparse zsocket zstyle ztcp',
|
|
44
48
|
_: '-ne -eq -lt -gt -f -d -e -s -l -a' // relevance booster
|
|
45
|
-
|
|
46
49
|
},
|
|
50
|
+
|
|
47
51
|
contains: [{
|
|
48
52
|
className: 'meta',
|
|
49
53
|
begin: /^#![^\n]+sh\s*$/,
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = function (hljs) {
|
|
4
4
|
return {
|
|
5
|
-
contains: [
|
|
5
|
+
contains: [
|
|
6
|
+
// Attribute
|
|
6
7
|
{
|
|
7
8
|
className: 'attribute',
|
|
8
9
|
begin: /</,
|
|
9
10
|
end: />/
|
|
10
|
-
},
|
|
11
|
+
},
|
|
12
|
+
// Specific
|
|
11
13
|
{
|
|
12
14
|
begin: /::=/,
|
|
13
15
|
starts: {
|
|
@@ -15,7 +17,8 @@ module.exports = function (hljs) {
|
|
|
15
17
|
contains: [{
|
|
16
18
|
begin: /</,
|
|
17
19
|
end: />/
|
|
18
|
-
},
|
|
20
|
+
},
|
|
21
|
+
// Common
|
|
19
22
|
hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE]
|
|
20
23
|
}
|
|
21
24
|
}]
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
6
|
-
|
|
7
5
|
module.exports = function (hljs) {
|
|
8
6
|
var _context;
|
|
9
|
-
|
|
10
7
|
var KEYWORDS = 'div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ' + 'until while with var';
|
|
11
8
|
var LITERALS = 'false true';
|
|
12
9
|
var COMMENT_MODES = [hljs.C_LINE_COMMENT_MODE, hljs.COMMENT(/\{/, /\}/, {
|
|
@@ -25,7 +25,6 @@ module.exports = function (hljs) {
|
|
|
25
25
|
endsWithParent: true,
|
|
26
26
|
excludeEnd: true
|
|
27
27
|
} // hack: eating everything after the first title
|
|
28
|
-
|
|
29
28
|
})]
|
|
30
29
|
}, {
|
|
31
30
|
className: 'class',
|
|
@@ -37,7 +36,6 @@ module.exports = function (hljs) {
|
|
|
37
36
|
endsWithParent: true,
|
|
38
37
|
excludeEnd: true
|
|
39
38
|
} // hack: eating everything after the first title
|
|
40
|
-
|
|
41
39
|
})]
|
|
42
40
|
}]
|
|
43
41
|
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
6
|
-
|
|
7
5
|
module.exports = function (hljs) {
|
|
8
6
|
var _context;
|
|
9
|
-
|
|
10
7
|
// 2.3. Identifiers and keywords
|
|
11
|
-
var KEYWORDS = 'assembly module package import alias class interface object given value ' + 'assign void function new of extends satisfies abstracts in out return ' + 'break continue throw assert dynamic if else switch case for while try ' + 'catch finally then let this outer super is exists nonempty';
|
|
12
|
-
|
|
13
|
-
var DECLARATION_MODIFIERS = 'shared abstract formal default actual variable late native deprecated' + 'final sealed annotation suppressWarnings small';
|
|
14
|
-
|
|
8
|
+
var KEYWORDS = 'assembly module package import alias class interface object given value ' + 'assign void function new of extends satisfies abstracts in out return ' + 'break continue throw assert dynamic if else switch case for while try ' + 'catch finally then let this outer super is exists nonempty';
|
|
9
|
+
// 7.4.1 Declaration Modifiers
|
|
10
|
+
var DECLARATION_MODIFIERS = 'shared abstract formal default actual variable late native deprecated' + 'final sealed annotation suppressWarnings small';
|
|
11
|
+
// 7.4.2 Documentation
|
|
15
12
|
var DOCUMENTATION = 'doc by license see throws tagged';
|
|
16
13
|
var SUBST = {
|
|
17
14
|
className: 'subst',
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = function (hljs) {
|
|
4
4
|
var keywords = {
|
|
5
|
-
'builtin-name':
|
|
5
|
+
'builtin-name':
|
|
6
|
+
// Clojure keywords
|
|
6
7
|
'def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem ' + 'quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? ' + 'set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? ' + 'class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? ' + 'string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . ' + 'inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last ' + 'drop-while while intern condp case reduced cycle split-at split-with repeat replicate ' + 'iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext ' + 'nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends ' + 'add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler ' + 'set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter ' + 'monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or ' + 'when when-not when-let comp juxt partial sequence memoize constantly complement identity assert ' + 'peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast ' + 'sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import ' + 'refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! ' + 'assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger ' + 'bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline ' + 'flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking ' + 'assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! ' + 'reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! ' + 'new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty ' + 'hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list ' + 'disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer ' + 'chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate ' + 'unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta ' + 'lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize'
|
|
7
8
|
};
|
|
8
9
|
var SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&#\'';
|
|
@@ -5,11 +5,16 @@ module.exports = function (hljs) {
|
|
|
5
5
|
aliases: ['cmake.in'],
|
|
6
6
|
case_insensitive: true,
|
|
7
7
|
keywords: {
|
|
8
|
-
keyword:
|
|
9
|
-
|
|
10
|
-
'
|
|
11
|
-
|
|
12
|
-
'
|
|
8
|
+
keyword:
|
|
9
|
+
// scripting commands
|
|
10
|
+
'break cmake_host_system_information cmake_minimum_required cmake_parse_arguments ' + 'cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro ' + 'endwhile execute_process file find_file find_library find_package find_path ' + 'find_program foreach function get_cmake_property get_directory_property ' + 'get_filename_component get_property if include include_guard list macro ' + 'mark_as_advanced math message option return separate_arguments ' + 'set_directory_properties set_property set site_name string unset variable_watch while ' +
|
|
11
|
+
// project commands
|
|
12
|
+
'add_compile_definitions add_compile_options add_custom_command add_custom_target ' + 'add_definitions add_dependencies add_executable add_library add_link_options ' + 'add_subdirectory add_test aux_source_directory build_command create_test_sourcelist ' + 'define_property enable_language enable_testing export fltk_wrap_ui ' + 'get_source_file_property get_target_property get_test_property include_directories ' + 'include_external_msproject include_regular_expression install link_directories ' + 'link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions ' + 'set_source_files_properties set_target_properties set_tests_properties source_group ' + 'target_compile_definitions target_compile_features target_compile_options ' + 'target_include_directories target_link_directories target_link_libraries ' + 'target_link_options target_sources try_compile try_run ' +
|
|
13
|
+
// CTest commands
|
|
14
|
+
'ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ' + 'ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ' + 'ctest_test ctest_update ctest_upload ' +
|
|
15
|
+
// deprecated commands
|
|
16
|
+
'build_name exec_program export_library_dependencies install_files install_programs ' + 'install_targets load_command make_directory output_required_files remove ' + 'subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file ' + 'qt5_use_modules qt5_use_package qt5_wrap_cpp ' +
|
|
17
|
+
// core keywords
|
|
13
18
|
'on off true false and or not command policy target test exists is_newer_than ' + 'is_directory is_symlink is_absolute matches less greater equal less_equal ' + 'greater_equal strless strgreater strequal strless_equal strgreater_equal version_less ' + 'version_greater version_equal version_less_equal version_greater_equal in_list defined'
|
|
14
19
|
},
|
|
15
20
|
contains: [{
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
6
|
-
|
|
7
5
|
module.exports = function (hljs) {
|
|
8
6
|
var _context;
|
|
9
|
-
|
|
10
7
|
var KEYWORDS = {
|
|
11
|
-
keyword:
|
|
12
|
-
|
|
8
|
+
keyword:
|
|
9
|
+
// JS keywords
|
|
10
|
+
'in if for while finally new do return else break catch instanceof throw try this ' + 'switch continue typeof delete debugger super yield import export from as default await ' +
|
|
11
|
+
// Coffee keywords
|
|
13
12
|
'then unless until loop of by when and or is isnt not',
|
|
14
|
-
literal:
|
|
15
|
-
|
|
13
|
+
literal:
|
|
14
|
+
// JS literals
|
|
15
|
+
'true false null undefined ' +
|
|
16
|
+
// Coffee literals
|
|
16
17
|
'yes no on off',
|
|
17
18
|
built_in: 'npm require console print module global window document'
|
|
18
19
|
};
|
|
@@ -28,7 +29,8 @@ module.exports = function (hljs) {
|
|
|
28
29
|
end: '(\\s*/)?',
|
|
29
30
|
relevance: 0
|
|
30
31
|
}
|
|
31
|
-
}),
|
|
32
|
+
}),
|
|
33
|
+
// a number tries to eat the following slash to prevent treating it as a regexp
|
|
32
34
|
{
|
|
33
35
|
className: 'string',
|
|
34
36
|
variants: [{
|
|
@@ -64,7 +66,6 @@ module.exports = function (hljs) {
|
|
|
64
66
|
}]
|
|
65
67
|
}, {
|
|
66
68
|
begin: '@' + JS_IDENT_RE // relevance booster
|
|
67
|
-
|
|
68
69
|
}, {
|
|
69
70
|
subLanguage: 'javascript',
|
|
70
71
|
excludeBegin: true,
|
|
@@ -86,7 +87,6 @@ module.exports = function (hljs) {
|
|
|
86
87
|
className: 'params',
|
|
87
88
|
begin: '\\([^\\(]',
|
|
88
89
|
returnBegin: true,
|
|
89
|
-
|
|
90
90
|
/* We need another contained nameless mode to not have every nested
|
|
91
91
|
pair of parens to be called "params" */
|
|
92
92
|
contains: [{
|
|
@@ -18,8 +18,11 @@ module.exports = function cos(hljs) {
|
|
|
18
18
|
begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)",
|
|
19
19
|
relevance: 0
|
|
20
20
|
};
|
|
21
|
-
var COS_KEYWORDS = 'property parameter class classmethod clientmethod extends as break ' + 'catch close continue do d|0 else elseif for goto halt hang h|0 if job ' + 'j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 ' + 'tcommit throw trollback try tstart use view while write w|0 xecute x|0 ' + 'zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert ' + 'zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit ' + 'zsync ascii';
|
|
21
|
+
var COS_KEYWORDS = 'property parameter class classmethod clientmethod extends as break ' + 'catch close continue do d|0 else elseif for goto halt hang h|0 if job ' + 'j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 ' + 'tcommit throw trollback try tstart use view while write w|0 xecute x|0 ' + 'zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert ' + 'zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit ' + 'zsync ascii';
|
|
22
|
+
|
|
23
|
+
// registered function - no need in them due to all functions are highlighted,
|
|
22
24
|
// but I'll just leave this here.
|
|
25
|
+
|
|
23
26
|
//"$bit", "$bitcount",
|
|
24
27
|
//"$bitfind", "$bitlogic", "$case", "$char", "$classmethod", "$classname",
|
|
25
28
|
//"$compile", "$data", "$decimal", "$double", "$extract", "$factor",
|
|
@@ -83,7 +86,8 @@ module.exports = function cos(hljs) {
|
|
|
83
86
|
// Some control constructions: do ##class(Package.ClassName).Method(), ##super()
|
|
84
87
|
className: "keyword",
|
|
85
88
|
begin: /##class|##super|#define|#dim/
|
|
86
|
-
},
|
|
89
|
+
},
|
|
90
|
+
// sub-languages: are not fully supported by hljs by 11/15/2015
|
|
87
91
|
// left for the future implementation.
|
|
88
92
|
{
|
|
89
93
|
begin: /&sql\(/,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
6
|
-
|
|
7
5
|
module.exports = function (hljs) {
|
|
8
6
|
var CPP_PRIMITIVE_TYPES = {
|
|
9
7
|
className: 'keyword',
|
|
@@ -115,7 +113,8 @@ module.exports = function (hljs) {
|
|
|
115
113
|
end: /\)/,
|
|
116
114
|
keywords: CPP_KEYWORDS,
|
|
117
115
|
relevance: 0,
|
|
118
|
-
contains: [hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, STRINGS, NUMBERS, CPP_PRIMITIVE_TYPES,
|
|
116
|
+
contains: [hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, STRINGS, NUMBERS, CPP_PRIMITIVE_TYPES,
|
|
117
|
+
// Count matching parentheses.
|
|
119
118
|
{
|
|
120
119
|
begin: /\(/,
|
|
121
120
|
end: /\)/,
|
|
@@ -132,7 +131,8 @@ module.exports = function (hljs) {
|
|
|
132
131
|
begin: /</,
|
|
133
132
|
end: />/,
|
|
134
133
|
contains: ['self']
|
|
135
|
-
},
|
|
134
|
+
},
|
|
135
|
+
// skip generic stuff
|
|
136
136
|
hljs.TITLE_MODE]
|
|
137
137
|
}]),
|
|
138
138
|
exports: {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
|
|
6
|
-
|
|
7
5
|
module.exports = function (hljs) {
|
|
8
6
|
var INT_SUFFIX = '(_*[ui](8|16|32|64|128))?';
|
|
9
7
|
var FLOAT_SUFFIX = '(_*f(32|64))?';
|
|
@@ -31,7 +29,6 @@ module.exports = function (hljs) {
|
|
|
31
29
|
}],
|
|
32
30
|
keywords: CRYSTAL_KEYWORDS
|
|
33
31
|
};
|
|
34
|
-
|
|
35
32
|
function recursiveParen(begin, end) {
|
|
36
33
|
var contains = [{
|
|
37
34
|
begin: begin,
|
|
@@ -40,7 +37,6 @@ module.exports = function (hljs) {
|
|
|
40
37
|
contains[0].contains = contains;
|
|
41
38
|
return contains;
|
|
42
39
|
}
|
|
43
|
-
|
|
44
40
|
var STRING = {
|
|
45
41
|
className: 'string',
|
|
46
42
|
contains: [hljs.BACKSLASH_ESCAPE, SUBST],
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = function (hljs) {
|
|
4
4
|
var KEYWORDS = {
|
|
5
|
-
keyword:
|
|
6
|
-
|
|
5
|
+
keyword:
|
|
6
|
+
// Normal keywords.
|
|
7
|
+
'abstract as base bool break byte case catch char checked const continue decimal ' + 'default delegate do double enum event explicit extern finally fixed float ' + 'for foreach goto if implicit in int interface internal is lock long nameof ' + 'object operator out override params private protected public readonly ref sbyte ' + 'sealed short sizeof stackalloc static string struct switch this try typeof ' + 'uint ulong unchecked unsafe ushort using virtual void volatile while ' +
|
|
8
|
+
// Contextual keywords.
|
|
7
9
|
'add alias ascending async await by descending dynamic equals from get global group into join ' + 'let on orderby partial remove select set value var where yield',
|
|
8
10
|
literal: 'null false true'
|
|
9
11
|
};
|
|
@@ -16,6 +16,7 @@ module.exports =
|
|
|
16
16
|
* - special token sequence rule is not strictly following D grammar (anything following #line
|
|
17
17
|
* up to the end of line is matched as special token sequence)
|
|
18
18
|
*/
|
|
19
|
+
|
|
19
20
|
function (hljs) {
|
|
20
21
|
/**
|
|
21
22
|
* Language keywords
|
|
@@ -27,33 +28,38 @@ function (hljs) {
|
|
|
27
28
|
built_in: 'bool cdouble cent cfloat char creal dchar delegate double dstring float function ' + 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar ' + 'wstring',
|
|
28
29
|
literal: 'false null true'
|
|
29
30
|
};
|
|
31
|
+
|
|
30
32
|
/**
|
|
31
33
|
* Number literal regexps
|
|
32
34
|
*
|
|
33
35
|
* @type {String}
|
|
34
36
|
*/
|
|
35
|
-
|
|
36
37
|
var decimal_integer_re = '(0|[1-9][\\d_]*)',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
decimal_integer_nosus_re = '(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)',
|
|
39
|
+
binary_integer_re = '0[bB][01_]+',
|
|
40
|
+
hexadecimal_digits_re = '([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)',
|
|
41
|
+
hexadecimal_integer_re = '0[xX]' + hexadecimal_digits_re,
|
|
42
|
+
decimal_exponent_re = '([eE][+-]?' + decimal_integer_nosus_re + ')',
|
|
43
|
+
decimal_float_re = '(' + decimal_integer_nosus_re + '(\\.\\d*|' + decimal_exponent_re + ')|' + '\\d+\\.' + decimal_integer_nosus_re + decimal_integer_nosus_re + '|' + '\\.' + decimal_integer_re + decimal_exponent_re + '?' + ')',
|
|
44
|
+
hexadecimal_float_re = '(0[xX](' + hexadecimal_digits_re + '\\.' + hexadecimal_digits_re + '|' + '\\.?' + hexadecimal_digits_re + ')[pP][+-]?' + decimal_integer_nosus_re + ')',
|
|
45
|
+
integer_re = '(' + decimal_integer_re + '|' + binary_integer_re + '|' + hexadecimal_integer_re + ')',
|
|
46
|
+
float_re = '(' + hexadecimal_float_re + '|' + decimal_float_re + ')';
|
|
47
|
+
|
|
46
48
|
/**
|
|
47
49
|
* Escape sequence supported in D string and character literals
|
|
48
50
|
*
|
|
49
51
|
* @type {String}
|
|
50
52
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'u[\\dA-Fa-f]{4}|' +
|
|
54
|
-
|
|
55
|
-
'
|
|
56
|
-
|
|
53
|
+
var escape_sequence_re = '\\\\(' + '[\'"\\?\\\\abfnrtv]|' +
|
|
54
|
+
// common escapes
|
|
55
|
+
'u[\\dA-Fa-f]{4}|' +
|
|
56
|
+
// four hex digit unicode codepoint
|
|
57
|
+
'[0-7]{1,3}|' +
|
|
58
|
+
// one to three octal digit ascii char code
|
|
59
|
+
'x[\\dA-Fa-f]{2}|' +
|
|
60
|
+
// two hex digit ascii char code
|
|
61
|
+
'U[\\dA-Fa-f]{8}' +
|
|
62
|
+
// eight hex digit unicode codepoint
|
|
57
63
|
')|' + '&[a-zA-Z\\d]{2,};'; // named character entity
|
|
58
64
|
|
|
59
65
|
/**
|
|
@@ -61,141 +67,140 @@ function (hljs) {
|
|
|
61
67
|
*
|
|
62
68
|
* @type {Object}
|
|
63
69
|
*/
|
|
64
|
-
|
|
65
70
|
var D_INTEGER_MODE = {
|
|
66
71
|
className: 'number',
|
|
67
72
|
begin: '\\b' + integer_re + '(L|u|U|Lu|LU|uL|UL)?',
|
|
68
73
|
relevance: 0
|
|
69
74
|
};
|
|
75
|
+
|
|
70
76
|
/**
|
|
71
77
|
* [D_FLOAT_MODE description]
|
|
72
78
|
* @type {Object}
|
|
73
79
|
*/
|
|
74
|
-
|
|
75
80
|
var D_FLOAT_MODE = {
|
|
76
81
|
className: 'number',
|
|
77
82
|
begin: '\\b(' + float_re + '([fF]|L|i|[fF]i|Li)?|' + integer_re + '(i|[fF]i|Li)' + ')',
|
|
78
83
|
relevance: 0
|
|
79
84
|
};
|
|
85
|
+
|
|
80
86
|
/**
|
|
81
87
|
* D character literal
|
|
82
88
|
*
|
|
83
89
|
* @type {Object}
|
|
84
90
|
*/
|
|
85
|
-
|
|
86
91
|
var D_CHARACTER_MODE = {
|
|
87
92
|
className: 'string',
|
|
88
93
|
begin: '\'(' + escape_sequence_re + '|.)',
|
|
89
94
|
end: '\'',
|
|
90
95
|
illegal: '.'
|
|
91
96
|
};
|
|
97
|
+
|
|
92
98
|
/**
|
|
93
99
|
* D string escape sequence
|
|
94
100
|
*
|
|
95
101
|
* @type {Object}
|
|
96
102
|
*/
|
|
97
|
-
|
|
98
103
|
var D_ESCAPE_SEQUENCE = {
|
|
99
104
|
begin: escape_sequence_re,
|
|
100
105
|
relevance: 0
|
|
101
106
|
};
|
|
107
|
+
|
|
102
108
|
/**
|
|
103
109
|
* D double quoted string literal
|
|
104
110
|
*
|
|
105
111
|
* @type {Object}
|
|
106
112
|
*/
|
|
107
|
-
|
|
108
113
|
var D_STRING_MODE = {
|
|
109
114
|
className: 'string',
|
|
110
115
|
begin: '"',
|
|
111
116
|
contains: [D_ESCAPE_SEQUENCE],
|
|
112
117
|
end: '"[cwd]?'
|
|
113
118
|
};
|
|
119
|
+
|
|
114
120
|
/**
|
|
115
121
|
* D wysiwyg and delimited string literals
|
|
116
122
|
*
|
|
117
123
|
* @type {Object}
|
|
118
124
|
*/
|
|
119
|
-
|
|
120
125
|
var D_WYSIWYG_DELIMITED_STRING_MODE = {
|
|
121
126
|
className: 'string',
|
|
122
127
|
begin: '[rq]"',
|
|
123
128
|
end: '"[cwd]?',
|
|
124
129
|
relevance: 5
|
|
125
130
|
};
|
|
131
|
+
|
|
126
132
|
/**
|
|
127
133
|
* D alternate wysiwyg string literal
|
|
128
134
|
*
|
|
129
135
|
* @type {Object}
|
|
130
136
|
*/
|
|
131
|
-
|
|
132
137
|
var D_ALTERNATE_WYSIWYG_STRING_MODE = {
|
|
133
138
|
className: 'string',
|
|
134
139
|
begin: '`',
|
|
135
140
|
end: '`[cwd]?'
|
|
136
141
|
};
|
|
142
|
+
|
|
137
143
|
/**
|
|
138
144
|
* D hexadecimal string literal
|
|
139
145
|
*
|
|
140
146
|
* @type {Object}
|
|
141
147
|
*/
|
|
142
|
-
|
|
143
148
|
var D_HEX_STRING_MODE = {
|
|
144
149
|
className: 'string',
|
|
145
150
|
begin: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',
|
|
146
151
|
relevance: 10
|
|
147
152
|
};
|
|
153
|
+
|
|
148
154
|
/**
|
|
149
155
|
* D delimited string literal
|
|
150
156
|
*
|
|
151
157
|
* @type {Object}
|
|
152
158
|
*/
|
|
153
|
-
|
|
154
159
|
var D_TOKEN_STRING_MODE = {
|
|
155
160
|
className: 'string',
|
|
156
161
|
begin: 'q"\\{',
|
|
157
162
|
end: '\\}"'
|
|
158
163
|
};
|
|
164
|
+
|
|
159
165
|
/**
|
|
160
166
|
* Hashbang support
|
|
161
167
|
*
|
|
162
168
|
* @type {Object}
|
|
163
169
|
*/
|
|
164
|
-
|
|
165
170
|
var D_HASHBANG_MODE = {
|
|
166
171
|
className: 'meta',
|
|
167
172
|
begin: '^#!',
|
|
168
173
|
end: '$',
|
|
169
174
|
relevance: 5
|
|
170
175
|
};
|
|
176
|
+
|
|
171
177
|
/**
|
|
172
178
|
* D special token sequence
|
|
173
179
|
*
|
|
174
180
|
* @type {Object}
|
|
175
181
|
*/
|
|
176
|
-
|
|
177
182
|
var D_SPECIAL_TOKEN_SEQUENCE_MODE = {
|
|
178
183
|
className: 'meta',
|
|
179
184
|
begin: '#(line)',
|
|
180
185
|
end: '$',
|
|
181
186
|
relevance: 5
|
|
182
187
|
};
|
|
188
|
+
|
|
183
189
|
/**
|
|
184
190
|
* D attributes
|
|
185
191
|
*
|
|
186
192
|
* @type {Object}
|
|
187
193
|
*/
|
|
188
|
-
|
|
189
194
|
var D_ATTRIBUTE_MODE = {
|
|
190
195
|
className: 'keyword',
|
|
191
196
|
begin: '@[a-zA-Z_][a-zA-Z_\\d]*'
|
|
192
197
|
};
|
|
198
|
+
|
|
193
199
|
/**
|
|
194
200
|
* D nesting comment
|
|
195
201
|
*
|
|
196
202
|
* @type {Object}
|
|
197
203
|
*/
|
|
198
|
-
|
|
199
204
|
var D_NESTING_COMMENT_MODE = hljs.COMMENT('\\/\\+', '\\+\\/', {
|
|
200
205
|
contains: ['self'],
|
|
201
206
|
relevance: 10
|
|
@@ -54,8 +54,10 @@ module.exports = function (hljs) {
|
|
|
54
54
|
BRACED_SUBST.contains = [hljs.C_NUMBER_MODE, STRING];
|
|
55
55
|
var KEYWORDS = {
|
|
56
56
|
keyword: 'assert async await break case catch class const continue default do else enum extends false final ' + 'finally for if in is new null rethrow return super switch sync this throw true try var void while with yield ' + 'abstract as dynamic export external factory get implements import library operator part set static typedef',
|
|
57
|
-
built_in:
|
|
58
|
-
|
|
57
|
+
built_in:
|
|
58
|
+
// dart:core
|
|
59
|
+
'print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set ' + 'Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num ' +
|
|
60
|
+
// dart:html
|
|
59
61
|
'document window querySelector querySelectorAll Element ElementList'
|
|
60
62
|
};
|
|
61
63
|
return {
|
|
@@ -77,7 +79,6 @@ module.exports = function (hljs) {
|
|
|
77
79
|
begin: '@[A-Za-z]+'
|
|
78
80
|
}, {
|
|
79
81
|
begin: '=>' // No markup, just a relevance booster
|
|
80
|
-
|
|
81
82
|
}]
|
|
82
83
|
};
|
|
83
84
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
6
|
-
|
|
7
5
|
module.exports = function (hljs) {
|
|
8
6
|
var _context, _context2, _context3;
|
|
9
|
-
|
|
10
7
|
var KEYWORDS = 'exports register file shl array record property for mod while set ally label uses raise not ' + 'stored class safecall var interface or private static exit index inherited to else stdcall ' + 'override shr asm far resourcestring finalization packed virtual out and protected library do ' + 'xorwrite goto near function end div overload object unit begin string on inline repeat until ' + 'destructor write message program with read initialization except default nil if case cdecl in ' + 'downto threadvar of try pascal const external constructor type public then implementation ' + 'finally published procedure absolute reintroduce operator as is abstract alias assembler ' + 'bitpacked break continue cppdecl cvar enumerator experimental platform deprecated ' + 'unimplemented dynamic export far16 forward generic helper implements interrupt iochecks ' + 'local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat ' + 'specialize strict unaligned varargs ';
|
|
11
8
|
var COMMENT_MODES = [hljs.C_LINE_COMMENT_MODE, hljs.COMMENT(/\{/, /\}/, {
|
|
12
9
|
relevance: 0
|
|
@@ -11,11 +11,13 @@ module.exports = function (hljs) {
|
|
|
11
11
|
}), {
|
|
12
12
|
className: 'meta',
|
|
13
13
|
begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/
|
|
14
|
-
},
|
|
14
|
+
},
|
|
15
|
+
// IPv6
|
|
15
16
|
{
|
|
16
17
|
className: 'number',
|
|
17
18
|
begin: '((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b'
|
|
18
|
-
},
|
|
19
|
+
},
|
|
20
|
+
// IPv4
|
|
19
21
|
{
|
|
20
22
|
className: 'number',
|
|
21
23
|
begin: '((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b'
|
|
@@ -15,7 +15,8 @@ module.exports = function (hljs) {
|
|
|
15
15
|
illegal: /\/\*/,
|
|
16
16
|
keywords: {
|
|
17
17
|
keyword: 'if else goto for in do call exit not exist errorlevel defined ' + 'equ neq lss leq gtr geq',
|
|
18
|
-
built_in: 'prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux ' + 'shift cd dir echo setlocal endlocal set pause copy ' + 'append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color ' + 'comp compact convert date dir diskcomp diskcopy doskey erase fs ' + 'find findstr format ftype graftabl help keyb label md mkdir mode more move path ' + 'pause print popd pushd promt rd recover rem rename replace restore rmdir shift' + 'sort start subst time title tree type ver verify vol ' +
|
|
18
|
+
built_in: 'prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux ' + 'shift cd dir echo setlocal endlocal set pause copy ' + 'append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color ' + 'comp compact convert date dir diskcomp diskcopy doskey erase fs ' + 'find findstr format ftype graftabl help keyb label md mkdir mode more move path ' + 'pause print popd pushd promt rd recover rem rename replace restore rmdir shift' + 'sort start subst time title tree type ver verify vol ' +
|
|
19
|
+
// winutils
|
|
19
20
|
'ping net ipconfig taskkill xcopy ren del'
|
|
20
21
|
},
|
|
21
22
|
contains: [{
|
|
@@ -13,7 +13,8 @@ module.exports = function (hljs) {
|
|
|
13
13
|
var ruleBodyMode = {
|
|
14
14
|
begin: /=/,
|
|
15
15
|
end: /;/,
|
|
16
|
-
contains: [commentMode, specialSequenceMode,
|
|
16
|
+
contains: [commentMode, specialSequenceMode,
|
|
17
|
+
// terminals
|
|
17
18
|
hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE]
|
|
18
19
|
};
|
|
19
20
|
return {
|