Skip to content

Commit 440f907

Browse files
authored
release: v1.4.1 (#21)
* feat: new doc page links in completions * fix: relax requirements on FunC identifiers to `(.*?)` The regex to approximate actual FunC naming options is gigantic and too unwieldy to be put here. That's especially true considering that this will only be used for highlighting and only in a very contained native function name mapping scenarios. The similar "include everything" approach was taken previously in tact.vim: https://github.com/tact-lang/tact.vim/blob/ddee48224ac89f4aa93f49d4544193ecd6b6948b/syntax/tact.vim#L77-L83
1 parent a028cf9 commit 440f907

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

package/Tact.sublime-completions

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
{
1212
"trigger": "interface\t@interface(\"...\")",
1313
"contents": "interface(\"$1\")",
14-
"kind": ["function", "a", "Attribute"]
14+
"kind": ["function", "a", "Attribute"],
15+
"details": "<a href=\"https://docs.tact-lang.org/book/contracts#interfaces\">Tact Docs</a>"
1516
},
1617

1718
// Literals, Base trait and constants
@@ -304,17 +305,20 @@
304305
{
305306
"trigger": "bytes32\tfor Slices",
306307
"contents": "bytes32",
307-
"kind": "type"
308+
"kind": "type",
309+
"details": "<a href=\"https://docs.tact-lang.org/book/cells#serialization-bytes32\">Tact Docs</a>"
308310
},
309311
{
310312
"trigger": "bytes64\tfor Slices",
311313
"contents": "bytes64",
312-
"kind": "type"
314+
"kind": "type",
315+
"details": "<a href=\"https://docs.tact-lang.org/book/cells#serialization-bytes64\">Tact Docs</a>"
313316
},
314317
{
315318
"trigger": "remaining\tfor Cells, Builders and Slices",
316319
"contents": "remaining",
317-
"kind": "type"
320+
"kind": "type",
321+
"details": "<a href=\"https://docs.tact-lang.org/book/cells#serialization-remaining\">Tact Docs</a>"
318322
},
319323

320324
// Keywords
@@ -446,17 +450,20 @@
446450
{
447451
"trigger": "abstract\tconstant or function to be defined",
448452
"contents": "abstract $0",
449-
"kind": "keyword"
453+
"kind": "keyword",
454+
"details": "<a href=\"https://docs.tact-lang.org/book/contracts#traits\">Tact Docs</a>"
450455
},
451456
{
452457
"trigger": "virtual\tconstant or function allowing overrides",
453458
"contents": "virtual $0",
454-
"kind": "keyword"
459+
"kind": "keyword",
460+
"details": "<a href=\"https://docs.tact-lang.org/book/contracts#traits\">Tact Docs</a>"
455461
},
456462
{
457463
"trigger": "override\tconstant or function to be overridden",
458464
"contents": "override $0",
459-
"kind": "keyword"
465+
"kind": "keyword",
466+
"details": "<a href=\"https://docs.tact-lang.org/book/contracts#traits\">Tact Docs</a>"
460467
},
461468
{
462469
"trigger": "extends\textension function",

package/Tact.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
<key>comment</key>
161161
<string>FunC identifier</string>
162162
<key>match</key>
163-
<string>((?:[a-zA-Z_\'\?!&amp;]|::)(?:[a-zA-Z0-9_\'\?!&amp;]|::)*)</string>
163+
<string>(.*?)</string>
164164
<key>name</key>
165165
<string>entity.name.function.func.tact</string>
166166
</dict>

package/Tact.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"patterns": [
105105
{
106106
"comment": "FunC identifier",
107-
"match": "((?:[a-zA-Z_\\'\\?!&]|::)(?:[a-zA-Z0-9_\\'\\?!&]|::)*)",
107+
"match": "(.*?)",
108108
"name": "entity.name.function.func.tact"
109109
}
110110
],

0 commit comments

Comments
 (0)