Skip to content

Commit 1649708

Browse files
committed
Add basic completion configuration.
1 parent 3e28a18 commit 1649708

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.4.0 - Improvements to completion
2+
* Greatly-improved autocomplete support
3+
* Correctly suggest handler, variable, constant, and type names, and
4+
known keywords
5+
* Minor syntax highlighting bugfixes
6+
17
## 0.3.0 - Snippet support
28
* Add basic snippets for commonly-used blocks. These work with Atom's new
39
built-in autocomplete support.

settings/language-livecode.cson

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,40 @@
88
'foldEndPattern': '^\\s*end\\b'
99
'increaseIndentPattern': '^\\s*(((public\\s*)?handler)|if|repeat|else)\\b'
1010
'decreaseIndentPattern': '^\\s*(end(\\s*(if|repeat|handler))?|else(\\s*if)?)\\b'
11+
12+
# Settings for autocomplete plus support
13+
'autocomplete':
14+
'symbols':
15+
'function':
16+
'selector': '.function.name'
17+
'typePriority': 6
18+
'variable':
19+
'selector': '.variable'
20+
'typePriority': 5
21+
'constant':
22+
'selector': '.constant.other.variable'
23+
'typePriority': 4
24+
'suggestions': [
25+
'true'
26+
'false'
27+
]
28+
'type':
29+
'selector': '.type.name'
30+
'typePriority': 3
31+
'suggestions': [
32+
'nothing'
33+
'any'
34+
'Boolean'
35+
'Number'
36+
'Integer'
37+
'Real'
38+
'String'
39+
'List'
40+
'Array'
41+
]
42+
'keyword':
43+
'selector': '.keyword, .storage'
44+
'typePriority': 2
45+
'': # Catch-all completion
46+
'selector': '.source.lcb'
47+
'typePriority': 1

0 commit comments

Comments
 (0)