]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/verilog.js
1 /*! `verilog` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= ( function () {
7 Author: Jon Evans <jon@craftyjon.com>
8 Contributors: Boone Severson <boone.severson@gmail.com>
9 Description: Verilog is a hardware description language used in electronic design automation to describe digital and mixed-signal systems. This highlighter supports Verilog and SystemVerilog through IEEE 1800-2012.
10 Website: http://www.verilog.com
14 function verilog ( hljs
) {
15 const regex
= hljs
. regex
;
17 $ pattern : /\$?[\w]+(\$[\w]+)*/ ,
171 "pulsestyle_ondetect" ,
172 "pulsestyle_onevent" ,
295 "$assertnonvacuouson" ,
313 "$set_coverage_db_name" ,
328 "$unpacked_dimensions" ,
470 const BUILT_IN_CONSTANTS
= [
478 "default_decay_time" ,
479 "default_trireg_strength" ,
481 "delay_mode_distributed" ,
494 "nounconnected_drive" ,
510 case_insensitive : false ,
513 hljs
. C_BLOCK_COMMENT_MODE
,
514 hljs
. C_LINE_COMMENT_MODE
,
515 hljs
. QUOTE_STRING_MODE
,
518 contains : [ hljs
. BACKSLASH_ESCAPE
],
520 { begin : /\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ },
521 { begin : /\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ },
523 begin : /\b[0-9][0-9_]*/ ,
528 /* parameters to instances */
532 { begin : '# \\ ((?!parameter).+ \\ )' },
540 scope : 'variable.constant' ,
541 match : regex
. concat (/ `/, regex.either(...BUILT_IN_CONSTANTS)),
545 begin: regex.concat(/` /, regex
. either (... DIRECTIVES
)),
558 export default hljsGrammar
;