mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
Rename prevLine to activeLine for better reading clarity.
This commit is contained in:
@@ -5,10 +5,10 @@ module.exports = {
|
||||
// BRACE FOLDING
|
||||
const startMatcher = /\{[ \t]*$/;
|
||||
const endMatcher = /\}[ \t]*$/;
|
||||
const prevLine = cm.getLine(start.line);
|
||||
const activeLine = cm.getLine(start.line);
|
||||
|
||||
|
||||
if(prevLine.match(startMatcher)) {
|
||||
if(activeLine.match(startMatcher)) {
|
||||
const lastLineNo = cm.lastLine();
|
||||
let end = start.line + 1;
|
||||
let braceCount = 1;
|
||||
@@ -31,7 +31,7 @@ module.exports = {
|
||||
|
||||
const importMatcher = /^@import.*?[;]/;
|
||||
|
||||
if(prevLine.match(importMatcher)) {
|
||||
if(activeLine.match(importMatcher)) {
|
||||
return {
|
||||
from : CodeMirror.Pos(start.line, 0),
|
||||
to : CodeMirror.Pos(start.line, cm.getLine(start.line).length)
|
||||
|
||||
Reference in New Issue
Block a user