From 8c0ca091ccb57367cc33cf2ed7eabd31260ccc61 Mon Sep 17 00:00:00 2001 From: sfja Date: Tue, 23 Sep 2025 17:07:27 +0200 Subject: [PATCH] syntax: list keyword --- vim/syntax/phi.vim | 2 +- vscode/phi/syntaxes/phi.tmLanguage.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/syntax/phi.vim b/vim/syntax/phi.vim index be682eb..e19a22c 100644 --- a/vim/syntax/phi.vim +++ b/vim/syntax/phi.vim @@ -8,7 +8,7 @@ if exists("b:current_syntax") endif -syn keyword Keyword fn call return loop for break if let do +syn keyword Keyword fn call return loop for break if let do list syn keyword Operator and or not syn keyword Special null syn keyword Boolean true false diff --git a/vscode/phi/syntaxes/phi.tmLanguage.json b/vscode/phi/syntaxes/phi.tmLanguage.json index de67758..73110c6 100644 --- a/vscode/phi/syntaxes/phi.tmLanguage.json +++ b/vscode/phi/syntaxes/phi.tmLanguage.json @@ -23,7 +23,7 @@ "patterns": [ { "name": "keyword.control.phi", - "match": "\\b(fn|return|loop|for|break|if|do|call)\\b" + "match": "\\b(fn|return|loop|for|break|if|do|call|list)\\b" }, { "name": "storage.type.phi", @@ -80,4 +80,4 @@ } }, "scopeName": "source.phi" -} \ No newline at end of file +}