diff options
author | R3dSt0ne <62245695+R3dst0ne@users.noreply.github.com> | 2022-08-14 17:36:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-14 17:36:18 +0200 |
commit | 3b0adc8605d46494f2192a07960906194d1887c0 (patch) | |
tree | 90780ae9414fb40c6d0898da0dfb1efdcae35e71 | |
parent | 955d258692d5fa9b8c2d5c3263cd51ad3d50b773 (diff) |
add multi_line_comments to VHDL (#924)
* add multi_line_comments to VHDL
* Update vhdl.vhd
-rw-r--r-- | languages.json | 1 | ||||
-rw-r--r-- | tests/data/vhdl.vhd | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/languages.json b/languages.json index ffdbff2..5eec0aa 100644 --- a/languages.json +++ b/languages.json @@ -1444,6 +1444,7 @@ "Vhdl": { "name": "VHDL", "line_comment": ["--"], + "multi_line_comments": [["/*", "*/"]], "extensions": ["vhd", "vhdl"] }, "VisualBasic": { diff --git a/tests/data/vhdl.vhd b/tests/data/vhdl.vhd index deb2790..1194f91 100644 --- a/tests/data/vhdl.vhd +++ b/tests/data/vhdl.vhd @@ -1,4 +1,8 @@ --- 30 lines 20 code 4 comments 6 blanks +-- 34 lines 20 code 7 comments 7 blanks + +/* + Since VHDL 2008 C-Style delimited comment are allowed. +*/ library IEEE; use IEEE.STD_LOGIC_1164.ALL; |