Skip to content

Commit

Permalink
add first example functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Tarassow committed Jun 4, 2021
1 parent 4385411 commit 5ec3b54
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions hansl.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
{
// https://sublimetextapi.readthedocs.io/en/latest/extensibility/completions.html
// https://www.sublimetext.com/docs/completions.html

"scope": "source.hansl",

"completions":
[

// Functions
{
"trigger": "abs",
"annotation": "Absolute value of x",
"contents": "abs(${1:scalar/series/matrix)}) $0\n",
"kind": "function",
"details": "return: same type as input "
},
{
"trigger": "aggregate",
"annotation": "Grouped statistics",
"contents": "aggregate(${1:x(series/list))}, ${2:byvar(series/list))}, ${3:[funcname(string)]}) $0\n",
"kind": "function",
"details": "return: same type as input"
},


// Commands
{
"trigger": "add",
"annotation": "Joint test for adding variables",
Expand Down Expand Up @@ -187,19 +206,8 @@
"kind": "snippet",
"details": "Options: --trend, --seasonals, --quiet, --verbose"
},
"anova",
"append",
"ar",
"ar1",
"arbond",
"arch",
"arima",
"arma",
"biprobit",
"boxplot",
"clear",
"corr",
"corrgm",

// TODO: Drop these later
"cusum",
"data",
"dataset",
Expand Down

0 comments on commit 5ec3b54

Please sign in to comment.