Skip to content

Commit

Permalink
[enh] Add OPTIMIZE: and HACK: to comment doctags
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Apr 30, 2020
1 parent d98cd4f commit e8624cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -14,6 +14,7 @@ Deprecations:

Language Improvements:

- [enh] Add `OPTIMIZE:` and `HACK:` to the labels highlighted inside comments [Josh Goebel][]
- enh(typescript/javascript/coffeescript/livescript) derive ECMAscript keywords from a common foudation (#2518) [Josh Goebel][]
- enh(typescript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Josh Goebel][]
- enh(javascript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Vania Kucher][]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/modes.js
Expand Up @@ -63,7 +63,7 @@ export const COMMENT = function(begin, end, inherits) {
mode.contains.push(PHRASAL_WORDS_MODE);
mode.contains.push({
className: 'doctag',
begin: '(?:TODO|FIXME|NOTE|BUG|XXX):',
begin: '(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):',
relevance: 0
});
return mode;
Expand Down

0 comments on commit e8624cc

Please sign in to comment.