1
0
Fork 0
mirror of https://github.com/Reuh/language-candran.git synced 2025-10-27 12:19:30 +00:00
language-candran/settings/language-lua.cson
Rochet2 4300e39f5e 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
2016-06-27 00:46:47 +03:00

5 lines
243 B
Text

'.source.lua':
'editor':
'commentStart': '-- '
'increaseIndentPattern': '((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$'
'decreaseIndentPattern': '^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))'