regex-comments

Atom highlighting for Oniguruma-regex comments


License
ISC
Install
apm install regex-comments@2.0.0

Documentation

Regex Comments

Highlight comments in regular expressions. Two styles are supported:

(?# Block comments)

# Line comments

Note: This style only affects strings that start with (?x):

Geared toward authors of TextMate-compatible grammars.

Targeting specific languages

By default, this package affects any language where the (?#…) sequence is used inside a string. If you'd like to restrict it to specific languages only, just use your stylesheet:

.syntax--string:not(.syntax--coffee),
.syntax--string:not(.syntax--yaml) {
	& .syntax--oniguruma.syntax--comment {
		color: inherit;
	}
}