Skip to content

Commit 4d8d1ed

Browse files
committed
Merge pull request #1872 from mgreter/bugfix/issue_1709
Improve identifier schema to include variables
2 parents 253a4ca + a5e2cd6 commit 4d8d1ed

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/prelexer.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,25 @@ namespace Sass {
195195
sequence <
196196
zero_plus <
197197
alternatives <
198-
identifier,
198+
sequence <
199+
optional <
200+
exactly <'$'>
201+
>,
202+
identifier
203+
>,
199204
exactly <'-'>
200205
>
201206
>,
202207
interpolant,
203208
zero_plus <
204209
alternatives <
205210
digits,
206-
identifier,
211+
sequence <
212+
optional <
213+
exactly <'$'>
214+
>,
215+
identifier
216+
>,
207217
quoted_string,
208218
exactly<'-'>
209219
>

0 commit comments

Comments
 (0)