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
fff0027c
Commit
fff0027c
authored
Apr 10, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handling the "!important" directive.
parent
9961ae15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
connectives.scss
connectives.scss
+3
-0
document_parser.cpp
document_parser.cpp
+3
-0
node.cpp
node.cpp
+4
-0
node.hpp
node.hpp
+1
-0
No files found.
connectives.scss
View file @
fff0027c
...
...
@@ -7,4 +7,6 @@ div {
/* things that aren't logical keywords */
a
:
hey
andalso
ho
and
-
come-on
hoo
;
b
:
hey
orelse
ho
andalso
hoo
;
c
:
hoogoo
!
important
blah
;
d
:
boogoo
!
important
;
}
\ No newline at end of file
document_parser.cpp
View file @
fff0027c
...
...
@@ -602,6 +602,9 @@ namespace Sass {
if
(
peek
<
functional
>
())
{
return
parse_function_call
();
}
if
(
lex
<
important
>
())
{
return
Node
(
Node
::
important
,
line_number
,
lexed
);
}
if
(
lex
<
identifier
>
())
{
return
Node
(
Node
::
identifier
,
line_number
,
lexed
);
}
...
...
node.cpp
View file @
fff0027c
...
...
@@ -238,6 +238,10 @@ namespace Sass {
else
return
"false"
;
}
break
;
case
important
:
{
return
"!important"
;
}
break
;
default
:
{
// return content.token.to_string();
if
(
!
has_children
&&
type
!=
flags
)
return
content
.
token
.
to_string
();
...
...
node.hpp
View file @
fff0027c
...
...
@@ -74,6 +74,7 @@ namespace Sass {
number
,
numeric_color
,
boolean
,
important
,
function_call
,
mixin
,
...
...
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