File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed
Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ print(obj.getMoreStuff(10))
179179// TODO: attribute definition
180180attr MyType::value;
181181// <- storage.type.chai
182- // ^^^^^^ meta.function.declaration.chai entity.name.function.chai
182+
183183def MyType::MyType() { this.value = "a"; }
184184// ^^^^^^ meta.function.declaration.chai entity.name.function.chai
185185def MyType::get_value() { "Value Is: " + this.value; }
@@ -189,4 +189,4 @@ def MyType::get_value() { "Value Is: " + this.value; }
189189
190190print("current line: " + __LINE__);
191191print("current file: " + __FILE__);
192- // ^ support.constant.chai
192+ // ^ support.constant.chai
You can’t perform that action at this time.
0 commit comments