You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@changnet I tried out your solution in my fork, but it produces an error:
At /Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:803
Error: end pattern with unmatched parenthesis
at Error (native)
at new OnigRegExp (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/oniguruma/lib/onig-reg-exp.js:9:22)
at LanguageMode.module.exports.LanguageMode.getRegexForProperty (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/language-mode.js:410:16)
at LanguageMode.module.exports.LanguageMode.increaseIndentRegexForScopeDescriptor (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/language-mode.js:415:19)
at LanguageMode.module.exports.LanguageMode.suggestedIndentForTokenizedLineAtBufferRow (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/language-mode.js:304:34)
at LanguageMode.module.exports.LanguageMode.suggestedIndentForBufferRow (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/language-mode.js:288:19)
at LanguageMode.module.exports.LanguageMode.autoIndentBufferRow (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/language-mode.js:366:26)
at TextEditor.module.exports.TextEditor.autoIndentBufferRow (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/text-editor.js:3054:32)
at Selection.module.exports.Selection.insertText (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/selection.js:498:21)
at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/text-editor.js:763:29
if age > config:get_max_age( id,
CONFIG.AGE ) then
end
should be
if age > config:get_max_age( id,
CONFIG.AGE ) then
end
solved:edit language-lua.cson
'.source.lua':
'editor':
'commentStart': '-- '
'increaseIndentPattern': '^\s_(else|elseif|for|(local\s+)?function|if|repeat|until|while)\b((?!end).)$|{\s$|([\s\S]$'
'decreaseIndentPattern': '^\s(elseif|else|end|until,?|})?)._$|^)$'
The text was updated successfully, but these errors were encountered: