-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
@RaymondLim SCSS supports both the single line comment |
@JeffryBooher Thanks for your info on comments in SCSS. I tested both Update: just realize your concern of collecting named flows from single line comments in SCSS files since you don't have it implemented. AFAIK, this is the only thing that is not relied on CodeMirror mode and you just have to fix it in your regular expression. |
This looks good, except there is 1 EditorOptionHandlers Unit test failing: should style active line after turning it on
Maybe you just need to merge with master? |
Thanks @redmunds Merging with master indeed fixes this unit test failure. |
…SS property values in function notation.
return (state.stack[state.stack.length - 1] === "propertyValue" && state.stack[state.stack.length - 2] === "rule"); | ||
return ((state.stack[state.stack.length - 1] === "propertyValue" && | ||
(state.stack[state.stack.length - 2] === "rule" || state.stack[state.stack.length - 2] === "block")) || | ||
(state.stack[state.stack.length - 1] === "(" && (state.stack[state.stack.length - 2] === "propertyValue"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line fixes the unit test failure caused by latest CodeMirror update.
All test now pass (Win7). Merging. |
Show CSS code hints in SCSS mode.
This works for all valid CSS properties except those syntax that are not yet supported in CodeMirror SCSS mode.
eg.
border: { style: solid; }
You won't see property values for border-style when the cursor is afterstyle:
in the example. Instead, you see a list of property names since CodeMirror does not recognize style: as a nested property.