Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,13 @@ define(function (require, exports, module) {
highlightSelectionMatches : currentOptions[HIGHLIGHT_MATCHES],
indentUnit : currentOptions[USE_TAB_CHAR] ? currentOptions[TAB_SIZE] : currentOptions[SPACE_UNITS],
indentWithTabs : currentOptions[USE_TAB_CHAR],
inputStyle : "textarea", // the "contenteditable" mode used on mobiles could cause issues
lineNumbers : currentOptions[SHOW_LINE_NUMBERS],
lineWrapping : currentOptions[WORD_WRAP],
matchBrackets : { maxScanLineLength: 50000, maxScanLines: 1000 },
matchTags : { bothTags: true },
showCursorWhenSelecting : currentOptions[SHOW_CURSOR_SELECT],
scrollPastEnd : !range && currentOptions[SCROLL_PAST_END],
showCursorWhenSelecting : currentOptions[SHOW_CURSOR_SELECT],
smartIndent : currentOptions[SMART_INDENT],
styleActiveLine : currentOptions[STYLE_ACTIVE_LINE],
tabSize : currentOptions[TAB_SIZE]
Expand Down
6 changes: 3 additions & 3 deletions src/language/CSSUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ define(function (require, exports, module) {
var prevToken = "";
while (token !== ";") {
// Skip tokens until the closing brace if we find an interpolated variable.
if (/#\{$/.test(token) || (token === "{" && /[#@]$/.test(prevToken))) {
if (/[#@]\{$/.test(token) || (token === "{" && /[#@]$/.test(prevToken))) {
_skipToClosingBracket("{");
if (token === "}") {
_nextToken(); // Skip the closing brace
Expand Down Expand Up @@ -911,9 +911,9 @@ define(function (require, exports, module) {
currentSelector += _skipToClosingBracket("{");
_nextToken(); // skip the closing brace
} else if (token === "}" &&
(!currentSelector || /:\s*\S/.test(currentSelector) || !/#\{.+/.test(currentSelector))) {
(!currentSelector || /:\s*\S/.test(currentSelector) || !/[#@]\{.+/.test(currentSelector))) {
// Either empty currentSelector or currentSelector is a CSS property
// but not a selector that is in the form of #{$class}
// but not a selector that is in the form of #{$class} or @{class}
return false;
}
// Clear currentSelector if we're in a property, but make sure we don't treat
Expand Down
2 changes: 1 addition & 1 deletion src/thirdparty/CodeMirror2