File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -735,7 +735,7 @@ namespace Sass {
735
735
// remove all block comments (don't skip white-space)
736
736
lex< delimited_by< slash_star, star_slash, false > >(false );
737
737
// parse functional
738
- if (peek < re_pseudo_selector >())
738
+ if (match < re_pseudo_selector >())
739
739
{
740
740
(*seq) << parse_simple_selector ();
741
741
}
Original file line number Diff line number Diff line change @@ -96,6 +96,15 @@ namespace Sass {
96
96
97
97
}
98
98
99
+ // peek will only skip over space, tabs and line comment
100
+ // return the position where the lexer match will occur
101
+ template <Prelexer::prelexer mx>
102
+ const char * match (const char * start = 0 )
103
+ {
104
+ // match the given prelexer
105
+ return mx (position);
106
+ }
107
+
99
108
// peek will only skip over space, tabs and line comment
100
109
// return the position where the lexer match will occur
101
110
template <Prelexer::prelexer mx>
You can’t perform that action at this time.
0 commit comments