: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
var mode = CodeMirror.getMode({indentUnit: 4}, "verilog");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
"[number 12'b0101_0101_0101]",
MT("real_number_literals",
"[number 236.123_763_e-12]"
"[keyword logic] [variable foo]",
"[keyword reg] [variable abc]"
"[variable _leading_underscore]",
"[number 12] [variable foo]",
"[variable foo] [number 14]"
MT("line_comment", "[comment // Hello world]");
MT("align_port_map_style1",
"[variable mod] [variable mod][bracket (].[variable a][bracket (][variable a][bracket )],",
" .[variable b][bracket (][variable b][bracket )]",
MT("align_port_map_style2",
"[variable mod] [variable mod][bracket (]",
" .[variable a][bracket (][variable a][bracket )],",
" .[variable b][bracket (][variable b][bracket )]",
MT("indent_single_statement_if",
"[keyword if] [bracket (][variable foo][bracket )]",
MT("no_indent_after_single_line_if",
"[keyword if] [bracket (][variable foo][bracket )] [keyword break];",
MT("indent_after_if_begin_same_line",
"[keyword if] [bracket (][variable foo][bracket )] [keyword begin]",
MT("indent_after_if_begin_next_line",
"[keyword if] [bracket (][variable foo][bracket )]",
MT("indent_single_statement_if_else",
"[keyword if] [bracket (][variable foo][bracket )]",
MT("indent_if_else_begin_same_line",
"[keyword if] [bracket (][variable foo][bracket )] [keyword begin]",
"[keyword end] [keyword else] [keyword begin]",
MT("indent_if_else_begin_next_line",
"[keyword if] [bracket (][variable foo][bracket )]",
MT("indent_if_nested_without_begin",
"[keyword if] [bracket (][variable foo][bracket )]",
" [keyword if] [bracket (][variable foo][bracket )]",
" [keyword if] [bracket (][variable foo][bracket )]",
"[keyword case] [bracket (][variable state][bracket )]",
MT("unindent_after_end_with_preceding_text",
" [keyword break]; [keyword end]",
MT("export_function_one_line_does_not_indent",
"[keyword export] [string \"DPI-C\"] [keyword function] [variable helloFromSV];",
MT("export_task_one_line_does_not_indent",
"[keyword export] [string \"DPI-C\"] [keyword task] [variable helloFromSV];",
MT("export_function_two_lines_indents_properly",
" [string \"DPI-C\"] [keyword function] [variable helloFromSV];",
MT("export_task_two_lines_indents_properly",
" [string \"DPI-C\"] [keyword task] [variable helloFromSV];",
MT("import_function_one_line_does_not_indent",
"[keyword import] [string \"DPI-C\"] [keyword function] [variable helloFromC];",
MT("import_task_one_line_does_not_indent",
"[keyword import] [string \"DPI-C\"] [keyword task] [variable helloFromC];",
MT("import_package_single_line_does_not_indent",
"[keyword import] [variable p]::[variable x];",
"[keyword import] [variable p]::[variable y];",
MT("covergroup_with_function_indents_properly",
"[keyword covergroup] [variable cg] [keyword with] [keyword function] [variable sample][bracket (][keyword bit] [variable b][bracket )];",
" [variable c] : [keyword coverpoint] [variable c];",
"[keyword endgroup]: [variable cg]",