1
0
Fork 0
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:
Rochet2 2016-06-27 00:46:47 +03:00 committed by GitHub
parent f1698c975c
commit 4300e39f5e

View file

@ -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)|(\\})|(\\)))'