Skip to content

Commit 9c4919b

Browse files
committed
basic autoindent support
1 parent e2b8bf0 commit 9c4919b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎settings/lightscript-atom.cson‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
editor:
33
commentStart: "{/*"
44
commentEnd: "*/}"
5-
".source.js":
5+
".source.js:not(.string:not(.comment))":
66
editor:
77
increaseIndentPattern: '''
88
(?x)
@@ -14,3 +14,10 @@
1414
^\\s*</[^>]+>$
1515
| ^\\s*/>$
1616
'''
17+
".source.js":
18+
editor:
19+
increaseIndentPattern: '''
20+
(?x)
21+
^(if|elif|else|try|catch|for)[^\\n]*:$ |
22+
^[\\w_$]*\\([^\\n]*\\)(?:\\:\\s+[^\\n]+)?\\s+[-=](?:get|set|\\/|\\*)?>$
23+
'''

0 commit comments

Comments
 (0)