Skip to content

Commit 5b001fa

Browse files
authored
Add support for YAML comments (#305)
1 parent 102a4a5 commit 5b001fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/single_line_comments/parser/single_line_comments.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:highlight/languages/python.dart';
88
import 'package:highlight/languages/scala.dart';
99
import 'package:highlight/languages/typescript.dart';
1010
import 'package:highlight/languages/vhdl.dart';
11+
import 'package:highlight/languages/yaml.dart';
1112

1213
class SingleLineComments {
1314
const SingleLineComments._();
@@ -22,6 +23,7 @@ class SingleLineComments {
2223
vhdl: [_hyphenMinuses],
2324
typescript: [_slashes],
2425
javascript: [_slashes],
26+
yaml: [_hash],
2527
};
2628

2729
static const _slashes = '//';

0 commit comments

Comments
 (0)