Skip to content

Commit

Permalink
Fix word_boundary check to account for #
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Feb 4, 2016
1 parent 01e0d84 commit a91ccfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace Sass {
const char* any_char(const char* src) { return *src ? src + 1 : src; }

// Match word boundary (zero-width lookahead).
const char* word_boundary(const char* src) { return is_character(*src) ? 0 : src; }
const char* word_boundary(const char* src) { return is_character(*src) || *src == '#' ? 0 : src; }

// Match linefeed /(?:\n|\r\n?)/
const char* re_linebreak(const char* src)
Expand Down

0 comments on commit a91ccfc

Please sign in to comment.