From 7209cf604da4dfe532851c44e6fccf5ec03eb1cd Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Tue, 24 Oct 2017 11:02:37 +0200 Subject: [PATCH] [r] update grammar --- extensions/r/syntaxes/r.tmLanguage.json | 24 +++++++++++-------- .../r/test/colorize-results/test_r.json | 14 +++++------ 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/extensions/r/syntaxes/r.tmLanguage.json b/extensions/r/syntaxes/r.tmLanguage.json index 38d7ae112e3..38ce48074cb 100644 --- a/extensions/r/syntaxes/r.tmLanguage.json +++ b/extensions/r/syntaxes/r.tmLanguage.json @@ -4,7 +4,7 @@ "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], - "version": "https://github.com/Ikuyadeu/vscode-R/commit/0ad8c770ea3836b15bc121fff4161a794d3deeaa", + "version": "https://github.com/Ikuyadeu/vscode-R/commit/b3ef459a3999160d97ea28f4754fda810417f99f", "fileTypes": [ "R", "r", @@ -178,11 +178,15 @@ "name": "keyword.operator.arithmetic.r" }, { - "match": "(=|<-|<<-|->|->>)", + "match": "==", + "name": "keyword.operator.comarison.r" + }, + { + "match": "(:=|<-|<<-|->|->>)", "name": "keyword.operator.assignment.r" }, { - "match": "(==|!=|<>|<|>|<=|>=)", + "match": "(!=|<>|<|>|<=|>=|%in%)", "name": "keyword.operator.comparison.r" }, { @@ -190,7 +194,7 @@ "name": "keyword.operator.logical.r" }, { - "match": "(%in%|:=|%between%|%chin%|%like%|%\\+%|%\\+replace%|%:%|%do%|%dopar%|%>%|%<>%|%T>%|%\\$%)", + "match": "(%between%|%chin%|%like%|%\\+%|%\\+replace%|%:%|%do%|%dopar%|%>%|%<>%|%T>%|%\\$%)", "name": "keyword.operator.other.r" }, { @@ -337,7 +341,7 @@ "function-declarations": { "patterns": [ { - "begin": "^\\s*([a-zA-Z0-9._:]*)\\s*(<