mirror of
https://github.com/Reuh/language-candran.git
synced 2025-10-27 12:19:30 +00:00
Attempt improving indentation
This change tries to make - single line repeat-until not indent - 'end' not match in the middle of words like 'tend' Closes https://github.com/FireZenk/language-lua/issues/12
This commit is contained in:
parent
f1698c975c
commit
4300e39f5e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
'.source.lua':
|
'.source.lua':
|
||||||
'editor':
|
'editor':
|
||||||
'commentStart': '-- '
|
'commentStart': '-- '
|
||||||
'increaseIndentPattern': '\\b(else|elseif|(local\\s+)?function|then|do|repeat)\\b((?!end).)*$|\\{\\s*$'
|
'increaseIndentPattern': '((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$'
|
||||||
'decreaseIndentPattern': '^\\s*(elseif|else|end|until,?|\\}\\)?).*$'
|
'decreaseIndentPattern': '^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue