From 7d1e35714e1dd38d340307774d0f0909480491c2 Mon Sep 17 00:00:00 2001 From: Anoop Nayak <665703+anoopknayak@users.noreply.github.com> Date: Wed, 21 Feb 2024 22:00:14 -0800 Subject: [PATCH] fix: Update proto3.tmLanguage.json to fix some syntax highlighting bugs This commit fixes the following issues: 1. The second method in service is not highlighted. 2. `option (.something.something)` is not highlighted. --- syntaxes/proto3.tmLanguage.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/proto3.tmLanguage.json b/syntaxes/proto3.tmLanguage.json index eb50211..1cb10cb 100644 --- a/syntaxes/proto3.tmLanguage.json +++ b/syntaxes/proto3.tmLanguage.json @@ -56,10 +56,10 @@ } }, "optionStmt": { - "begin": "(option)\\s+(\\w+|\\(\\w+(\\.\\w+)*\\))(\\.\\w+)*\\s*(=)", + "begin": "(option)\\s+(\\w+|\\((\\.\\w+)*\\))(\\.\\w+)*\\s*(=)", "beginCaptures": { "1": {"name": "keyword.other.proto"}, - "2": {"name": "support.other.proto"}, + "2": {"name": "keyword.other.proto"}, "3": {"name": "support.other.proto"}, "4": {"name": "support.other.proto"}, "5": {"name": "keyword.operator.assignment.proto"}