You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because ns-directive-parameter is defined as simply ns-char+, it will happily consume comments at the end of the line. E.g, in:
%FOO bar # baz
The ns-reserved-directive production will match all of FOO bar # baz. This is probably not the intent.
The practical implications of this are almost nil, since the parsing process should discard both comments and (with a warning) reserved directives. But it could also be easily fixed by redefining ns-directive-parameter to [ lookahead ≠ '#' ] ns-char+.
The text was updated successfully, but these errors were encountered:
Because
ns-directive-parameter
is defined as simplyns-char+
, it will happily consume comments at the end of the line. E.g, in:The
ns-reserved-directive
production will match all ofFOO bar # baz
. This is probably not the intent.The practical implications of this are almost nil, since the parsing process should discard both comments and (with a warning) reserved directives. But it could also be easily fixed by redefining
ns-directive-parameter
to[ lookahead ≠ '#' ] ns-char+
.The text was updated successfully, but these errors were encountered: