@@ -615,7 +615,7 @@ namespace Sass {
615
615
while (peek_css< exactly<' ,' > >())
616
616
{
617
617
lex< css_comments >(false );
618
- // consume everything up and including the comma speparator
618
+ // consume everything up and including the comma separator
619
619
reloop = lex< exactly<' ,' > >() != 0 ;
620
620
// remember line break (also between some commas)
621
621
had_linefeed = had_linefeed || peek_newline ();
@@ -719,7 +719,7 @@ namespace Sass {
719
719
// EO parse_complex_selector
720
720
721
721
// parse one compound selector, which is basically
722
- // a list of simple selectors (directly adjancent )
722
+ // a list of simple selectors (directly adjacent )
723
723
// lex them exactly (without skipping white-space)
724
724
Compound_Selector* Parser::parse_compound_selector ()
725
725
{
@@ -747,7 +747,7 @@ namespace Sass {
747
747
seq->has_parent_reference (true );
748
748
(*seq) << SASS_MEMORY_NEW (ctx.mem , Parent_Selector, pstate);
749
749
// parent selector only allowed at start
750
- // upcoming sass may allow also trailing
750
+ // upcoming Sass may allow also trailing
751
751
if (seq->length () > 1 ) {
752
752
ParserState state (pstate);
753
753
Simple_Selector* cur = (*seq)[seq->length ()-1 ];
@@ -834,7 +834,7 @@ namespace Sass {
834
834
}
835
835
836
836
// a pseudo selector often starts with one or two colons
837
- // it can contain more selectors inside parantheses
837
+ // it can contain more selectors inside parentheses
838
838
Simple_Selector* Parser::parse_pseudo_selector () {
839
839
if (lex< sequence<
840
840
optional < pseudo_prefix >,
@@ -1213,9 +1213,9 @@ namespace Sass {
1213
1213
: lex<kwd_lte>() ? Sass_OP::LTE
1214
1214
: lex<kwd_gt>() ? Sass_OP::GT
1215
1215
: lex<kwd_lt>() ? Sass_OP::LT
1216
- // we checked the possibilites on top of fn
1216
+ // we checked the possibilities on top of fn
1217
1217
: Sass_OP::EQ;
1218
- // is directly adjancent to expression?
1218
+ // is directly adjacent to expression?
1219
1219
bool right_ws = peek < css_comments >() != NULL ;
1220
1220
operators.push_back ({ op, left_ws, right_ws });
1221
1221
operands.push_back (parse_expression ());
@@ -1238,7 +1238,6 @@ namespace Sass {
1238
1238
// NOTE: dashes do NOT count as subtract operation
1239
1239
Expression* lhs = parse_operators ();
1240
1240
// if it's a singleton, return it (don't wrap it)
1241
- // if it's a singleton, return it (don't wrap it)
1242
1241
if (!(peek_css< exactly<' +' > >(position) ||
1243
1242
// condition is a bit misterious, but some combinations should not be counted as operations
1244
1243
(peek< no_spaces >(position) && peek< sequence< negate< unsigned_number >, exactly<' -' >, negate< space > > >(position)) ||
@@ -1308,7 +1307,6 @@ namespace Sass {
1308
1307
if (!lex_css< exactly<' )' > >()) error (" unclosed parenthesis" , pstate);
1309
1308
// expression can be evaluated
1310
1309
// make sure wrapped lists and division expressions are non-delayed within parentheses
1311
- // make sure wrapped lists and division expressions are non-delayed within parentheses
1312
1310
if (value->concrete_type () == Expression::LIST) {
1313
1311
// List* l = static_cast<List*>(value);
1314
1312
// if (!l->empty()) (*l)[0]->is_delayed(false);
@@ -1416,7 +1414,7 @@ namespace Sass {
1416
1414
if (lex< percentage >())
1417
1415
{ return SASS_MEMORY_NEW (ctx.mem , Textual, pstate, Textual::PERCENTAGE, lexed); }
1418
1416
1419
- // match hex number first because 0x000 looks like a number followed by an indentifier
1417
+ // match hex number first because 0x000 looks like a number followed by an identifier
1420
1418
if (lex< sequence < alternatives< hex, hex0 >, negate < exactly<' -' > > > >())
1421
1419
{ return SASS_MEMORY_NEW (ctx.mem , Textual, pstate, Textual::HEX, lexed); }
1422
1420
@@ -1630,7 +1628,7 @@ namespace Sass {
1630
1628
lex < exactly < rbrace > >();
1631
1629
}
1632
1630
// lex some string constants or other valid token
1633
- // Note: [-+] chars are left over from ie . `#{3}+3`
1631
+ // Note: [-+] chars are left over from i.e . `#{3}+3`
1634
1632
else if (lex< alternatives < exactly<' %' >, exactly < ' -' >, exactly < ' +' > > >()) {
1635
1633
(*schema) << SASS_MEMORY_NEW (ctx.mem , String_Constant, pstate, lexed);
1636
1634
}
@@ -1899,7 +1897,7 @@ namespace Sass {
1899
1897
if (!peek< exactly <' $' > >()) {
1900
1898
css_error (" Invalid CSS" , " after " , " : expected \" $\" , was " );
1901
1899
}
1902
- // we expect a simple identfier as the call name
1900
+ // we expect a simple identifier as the call name
1903
1901
if (!lex< sequence < exactly <' $' >, identifier > >()) {
1904
1902
lex< exactly <' $' > >(); // move pstate and position up
1905
1903
css_error (" Invalid CSS" , " after " , " : expected identifier, was " );
@@ -1910,7 +1908,7 @@ namespace Sass {
1910
1908
// helper to parse identifier
1911
1909
Token Parser::lex_identifier ()
1912
1910
{
1913
- // we expect a simple identfier as the call name
1911
+ // we expect a simple identifier as the call name
1914
1912
if (!lex< identifier >()) { // ToDo: pstate wrong?
1915
1913
css_error (" Invalid CSS" , " after " , " : expected identifier, was " );
1916
1914
}
@@ -2097,7 +2095,7 @@ namespace Sass {
2097
2095
}
2098
2096
2099
2097
// TODO: This needs some major work. Although feature conditions
2100
- // look like declarations their semantics differ siginificantly
2098
+ // look like declarations their semantics differ significantly
2101
2099
Supports_Condition* Parser::parse_supports_declaration ()
2102
2100
{
2103
2101
Supports_Condition* cond = 0 ;
@@ -2264,7 +2262,7 @@ namespace Sass {
2264
2262
if (const char * q =
2265
2263
peek <
2266
2264
alternatives <
2267
- // partial bem selector
2265
+ // partial BEM selector
2268
2266
sequence <
2269
2267
ampersand,
2270
2268
one_plus <
@@ -2305,7 +2303,7 @@ namespace Sass {
2305
2303
// single or double colon
2306
2304
optional < pseudo_prefix >
2307
2305
>,
2308
- // accept hypens in token
2306
+ // accept hyphens in token
2309
2307
one_plus < sequence <
2310
2308
// can start with hyphens
2311
2309
zero_plus < exactly<' -' > >,
@@ -2429,7 +2427,7 @@ namespace Sass {
2429
2427
// ToDo: remove
2430
2428
rv.position = q;
2431
2429
// check expected opening bracket
2432
- // only after successfull matching
2430
+ // only after successful matching
2433
2431
if (peek < exactly<' {' > >(q)) rv.found = q;
2434
2432
else if (peek < exactly<' ;' > >(q)) rv.found = q;
2435
2433
else if (peek < exactly<' }' > >(q)) rv.found = q;
0 commit comments