Skip to content

Commit cafd0e0

Browse files
committed
chore: sync Leo syntax from v4.0.2
Catches master up to v4.0.2 (commit 13448848d9509c32b4541fda6b498b0fee703eab), picking up the tree-sitter fix that adds 'identifier' as a primitive_type (ProvableHQ/leo#29359). This propagates into both the TextMate 'storage.type.primitive.leo' match and the Prism 'type-keyword' regex. Regenerated via ./scripts/sync-tree-sitter-from-leo.sh ../leo v4.0.2. `npm run test:prism` passes.
1 parent 6e3de6b commit cafd0e0

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/shared/syntaxes/prism-leo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Generated from Leo tree-sitter syntax data. Do not edit by hand.
22
// Source repo: ProvableHQ/leo
3-
// Source ref: v4.0.1
4-
// Resolved commit: abe1e1e8e5dd48ae5a849a94c802175419bebb30
3+
// Source ref: v4.0.2
4+
// Resolved commit: 13448848d9509c32b4541fda6b498b0fee703eab
55

66
Prism.languages.leo = {
77
"comment": [
@@ -76,7 +76,7 @@ Prism.languages.leo = {
7676
}
7777
],
7878
"keyword": new RegExp("\\b(?:assert_neq|assert_eq|interface|mapping|network|program|storage|assert|import|record|return|struct|block|const|final|Final|aleo|else|self|for|let|as|fn|Fn|if|in)\\b"),
79-
"type-keyword": new RegExp("\\b(?:signature|address|scalar|string|field|group|bool|i128|u128|i16|i32|i64|u16|u32|u64|i8|u8)\\b"),
79+
"type-keyword": new RegExp("\\b(?:identifier|signature|address|scalar|string|field|group|bool|i128|u128|i16|i32|i64|u16|u32|u64|i8|u8)\\b"),
8080
"bool-keyword": new RegExp("\\b(?:false|true)\\b"),
8181
"builtin-constant": [
8282
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sourceRepo": "ProvableHQ/leo",
33
"sourcePath": "tree-sitter",
4-
"sourceRef": "v4.0.1",
5-
"resolvedCommit": "abe1e1e8e5dd48ae5a849a94c802175419bebb30"
4+
"sourceRef": "v4.0.2",
5+
"resolvedCommit": "13448848d9509c32b4541fda6b498b0fee703eab"
66
}

packages/vscode/syntaxes/leo.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
"patterns": [
214214
{
215215
"name": "storage.type.primitive.leo",
216-
"match": "\\b(?:signature|address|scalar|string|field|group|bool|i128|u128|i16|i32|i64|u16|u32|u64|i8|u8)\\b"
216+
"match": "\\b(?:identifier|signature|address|scalar|string|field|group|bool|i128|u128|i16|i32|i64|u16|u32|u64|i8|u8)\\b"
217217
}
218218
]
219219
},

0 commit comments

Comments
 (0)