Skip to content

Commit 60a478b

Browse files
author
Kim
committed
update README
1 parent aebeaac commit 60a478b

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
# ChaiScript Language Package for Sublime Text 3
22

3-
WIP
3+
## How To Install
4+
5+
* Install with PackageControl (https://packagecontrol.io/)
6+
or
7+
* Clone repository into your packages folder.
8+
9+
## Snippets
10+
11+
The following snippets can be triggered.
12+
13+
* `fori` Basic for-loop
14+
* `def` Declare a named function
15+
* `fun` Declare a lambda function
16+
* `if` If block
17+
* `ife` if ... else block
418

519
## Todos
620

7-
* Snippets
8-
* Detect backticks of operator functions
21+
* Detect members declared with `attr`
22+
23+
## License
24+
25+
MIT License

syntax_test_chai.chai

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ print(obj.getMoreStuff(10))
179179
// TODO: attribute definition
180180
attr MyType::value;
181181
// <- storage.type.chai
182-
// ^^^^^^ meta.function.declaration.chai entity.name.function.chai
182+
183183
def MyType::MyType() { this.value = "a"; }
184184
// ^^^^^^ meta.function.declaration.chai entity.name.function.chai
185185
def MyType::get_value() { "Value Is: " + this.value; }
@@ -189,4 +189,4 @@ def MyType::get_value() { "Value Is: " + this.value; }
189189

190190
print("current line: " + __LINE__);
191191
print("current file: " + __FILE__);
192-
// ^ support.constant.chai
192+
// ^ support.constant.chai

0 commit comments

Comments
 (0)