Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ VBScript
Velocity
Verilog
VerilogArgsFile
Veryl
Vhdl
VimScript
VisualBasic
Expand Down
7 changes: 7 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1923,6 +1923,13 @@
"name": "Verilog Args File",
"extensions": ["irunargs", "xrunargs"]
},
"Veryl": {
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"quotes": [["\\\"", "\\\""]],
"important_syntax": ["///"],
"extensions": ["veryl"]
},
"Vhdl": {
"name": "VHDL",
"line_comment": ["--"],
Expand Down
19 changes: 19 additions & 0 deletions tests/data/veryl.veryl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/// 19 lines 7 code 10 comments 2 blanks
/// ```veryl
/// module Hello {
/// initial {
/// // comment
/// $display("Hello, world!");
/// }
/// }
/// ```

/* /* no nested multi-line comments */
module ModuleA {
let _a: string = "*/";
let _b: logic = 1; // end of line comment */
}

module ModuleB {
let _a: string = "\"/*escaped quotes in a string and block comment*/\"";
}
Loading