Skip to content

Commit

Permalink
Support single line comments for VHDL language (#266)
Browse files Browse the repository at this point in the history
Adding the hyphen minuses to the single line comments for the vhdl language
  • Loading branch information
IveBracke authored Jun 26, 2024
1 parent 4595510 commit 0dc3246
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/single_line_comments/parser/single_line_comments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:highlight/languages/java.dart';
import 'package:highlight/languages/php.dart';
import 'package:highlight/languages/python.dart';
import 'package:highlight/languages/scala.dart';
import 'package:highlight/languages/vhdl.dart';

class SingleLineComments {
const SingleLineComments._();
Expand All @@ -16,8 +17,10 @@ class SingleLineComments {
php: [_slashes, _hash],
python: [_hash],
scala: [_slashes],
vhdl: [_hyphenMinuses],
};

static const _slashes = '//';
static const _hash = '#';
static const _hyphenMinuses = '--';
}

0 comments on commit 0dc3246

Please sign in to comment.