diff options
Diffstat (limited to 'lib/style-reader.js')
| -rw-r--r-- | lib/style-reader.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/style-reader.js b/lib/style-reader.js index ef379b6..811e06e 100644 --- a/lib/style-reader.js +++ b/lib/style-reader.js @@ -109,7 +109,7 @@ function documentMatcherRule() { ); var matcherSuffixes = lop.rules.zeroOrMore(matcherSuffix); - return sequence( + var paragraphOrRun = sequence( sequence.capture(elementTypeRule), sequence.capture(matcherSuffixes) ).map(function(createMatcher, suffixes) { @@ -119,6 +119,13 @@ function documentMatcherRule() { }); return createMatcher(matcherOptions); }); + + var underline = identifierToConstant("u", documentMatchers.underline); + + return lop.rules.firstOf("element type", + paragraphOrRun, + underline + ); } function readHtmlPath(string) { |
