Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
9961ae15
Commit
9961ae15
authored
Apr 10, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't munch keywords when they prefix a longer identifier.
parent
e2c130b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
connectives.scss
connectives.scss
+5
-0
document_parser.cpp
document_parser.cpp
+4
-4
No files found.
connectives.scss
View file @
9961ae15
...
...
@@ -3,4 +3,8 @@ div {
b
:
hey
or
ho
or
hoo
;
c
:
hey
and
false
and
(
1
/
0
);
d
:
1
>
2
or
1
+
3
<
1
or
bungle
;
e
:
1
>
2
or
1
<
2
and
fungible
;
/* things that aren't logical keywords */
a
:
hey
andalso
ho
and
-
come-on
hoo
;
b
:
hey
orelse
ho
andalso
hoo
;
}
\ No newline at end of file
document_parser.cpp
View file @
9961ae15
...
...
@@ -448,11 +448,11 @@ namespace Sass {
{
Node
conj1
(
parse_conjunction
());
// if it's a singleton, return it directly; don't wrap it
if
(
!
peek
<
or_kwd
>
())
return
conj1
;
if
(
!
peek
<
sequence
<
or_kwd
,
negate
<
identifier
>
>
>
())
return
conj1
;
Node
disjunction
(
Node
::
disjunction
,
line_number
,
2
);
disjunction
<<
conj1
;
while
(
lex
<
or_kwd
>
())
disjunction
<<
parse_conjunction
();
while
(
lex
<
sequence
<
or_kwd
,
negate
<
identifier
>
>
>
())
disjunction
<<
parse_conjunction
();
disjunction
.
eval_me
=
true
;
return
disjunction
;
...
...
@@ -462,11 +462,11 @@ namespace Sass {
{
Node
rel1
(
parse_relation
());
// if it's a singleton, return it directly; don't wrap it
if
(
!
peek
<
and_kwd
>
())
return
rel1
;
if
(
!
peek
<
sequence
<
and_kwd
,
negate
<
identifier
>
>
>
())
return
rel1
;
Node
conjunction
(
Node
::
conjunction
,
line_number
,
2
);
conjunction
<<
rel1
;
while
(
lex
<
and_kwd
>
())
conjunction
<<
parse_relation
();
while
(
lex
<
sequence
<
and_kwd
,
negate
<
identifier
>
>
>
())
conjunction
<<
parse_relation
();
conjunction
.
eval_me
=
true
;
return
conjunction
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment