Skip to content

Commit 0becd23

Browse files
committed
added folding for def, renamed scope
1 parent 91e354b commit 0becd23

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

language-configuration.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,11 @@
2626
["(", ")"],
2727
["\"", "\""],
2828
["'", "'"]
29-
]
29+
],
30+
"folding": {
31+
"markers": {
32+
"start": "^def\\b",
33+
"end": "^\\}"
34+
}
35+
}
3036
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"grammars": [
3434
{
3535
"language": "nushell",
36-
"scopeName": "source.nu",
36+
"scopeName": "source.nushell",
3737
"path": "./syntaxes/nushell.tmLanguage.json"
3838
}
3939
],

syntaxes/nushell.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@
105105
}
106106
}
107107
},
108-
"scopeName": "source.nu"
108+
"scopeName": "source.nushell"
109109
}

0 commit comments

Comments
 (0)