@@ -71,6 +71,7 @@ namespace Sass {
71
71
72
72
bool peek_newline (const char * start = 0 );
73
73
74
+ // skip over spaces, tabs and line comments
74
75
template <prelexer mx>
75
76
const char * sneak (const char * start = 0 )
76
77
{
@@ -98,6 +99,8 @@ namespace Sass {
98
99
99
100
}
100
101
102
+ // peek will only skip over space, tabs and line comment
103
+ // return the position where the lexer match will occur
101
104
template <prelexer mx>
102
105
const char * peek (const char * start = 0 )
103
106
{
@@ -116,6 +119,7 @@ namespace Sass {
116
119
// some matchers don't accept certain white-space
117
120
// we do not support start arg, since we manipulate
118
121
// sourcemap offset and we modify the position pointer!
122
+ // lex will only skip over space, tabs and line comment
119
123
template <prelexer mx>
120
124
const char * lex ()
121
125
{
@@ -149,7 +153,9 @@ namespace Sass {
149
153
150
154
}
151
155
152
- // skips over css comments
156
+ // lex_css skips over space, tabs, line and block comment
157
+ // all block comments will be consumed and thrown away
158
+ // source-map position will point to token after the comment
153
159
template <prelexer mx>
154
160
const char * lex_css ()
155
161
{
@@ -160,7 +166,7 @@ namespace Sass {
160
166
return lex< mx >();
161
167
}
162
168
163
- // skips over css comments
169
+ // all block comments will be skipped and thrown away
164
170
template <prelexer mx>
165
171
const char * peek_css (const char * start = 0 )
166
172
{
0 commit comments