Skip to content

Commit e8624cc

Browse files
committed
[enh] Add OPTIMIZE: and HACK: to comment doctags
1 parent d98cd4f commit e8624cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Deprecations:
1414

1515
Language Improvements:
1616

17+
- [enh] Add `OPTIMIZE:` and `HACK:` to the labels highlighted inside comments [Josh Goebel][]
1718
- enh(typescript/javascript/coffeescript/livescript) derive ECMAscript keywords from a common foudation (#2518) [Josh Goebel][]
1819
- enh(typescript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Josh Goebel][]
1920
- enh(javascript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Vania Kucher][]

src/lib/modes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const COMMENT = function(begin, end, inherits) {
6363
mode.contains.push(PHRASAL_WORDS_MODE);
6464
mode.contains.push({
6565
className: 'doctag',
66-
begin: '(?:TODO|FIXME|NOTE|BUG|XXX):',
66+
begin: '(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):',
6767
relevance: 0
6868
});
6969
return mode;

0 commit comments

Comments
 (0)