Skip to content

Commit 0dc3246

Browse files
authored
Support single line comments for VHDL language (#266)
Adding the hyphen minuses to the single line comments for the vhdl language
1 parent 4595510 commit 0dc3246

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/single_line_comments/parser/single_line_comments.dart

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'package:highlight/languages/java.dart';
55
import 'package:highlight/languages/php.dart';
66
import 'package:highlight/languages/python.dart';
77
import 'package:highlight/languages/scala.dart';
8+
import 'package:highlight/languages/vhdl.dart';
89

910
class SingleLineComments {
1011
const SingleLineComments._();
@@ -16,8 +17,10 @@ class SingleLineComments {
1617
php: [_slashes, _hash],
1718
python: [_hash],
1819
scala: [_slashes],
20+
vhdl: [_hyphenMinuses],
1921
};
2022

2123
static const _slashes = '//';
2224
static const _hash = '#';
25+
static const _hyphenMinuses = '--';
2326
}

0 commit comments

Comments
 (0)