From ab6a54d2404905960046b029deed1d871dc9cd89 Mon Sep 17 00:00:00 2001 From: Konstantin Yakushev Date: Thu, 13 Jul 2017 22:21:16 +0100 Subject: [PATCH] Treat enum names same as message names (#14) This will allow goto_definition command to work to enum as well as to messages --- Protobuf.YAML-tmLanguage | 2 +- Protobuf.tmLanguage | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Protobuf.YAML-tmLanguage b/Protobuf.YAML-tmLanguage index 6d0a2c3..8e465bc 100644 --- a/Protobuf.YAML-tmLanguage +++ b/Protobuf.YAML-tmLanguage @@ -46,7 +46,7 @@ repository: begin: (enum)(\s+)([A-Za-z][A-Za-z0-9_]*)(\s*)(\{)? beginCaptures: '1': {name: keyword.source.proto} - '3': {name: entity.name.class.proto} + '3': {name: entity.name.class.message.proto} end: \} patterns: - include: '#option' diff --git a/Protobuf.tmLanguage b/Protobuf.tmLanguage index 44be9bd..966e762 100644 --- a/Protobuf.tmLanguage +++ b/Protobuf.tmLanguage @@ -102,7 +102,7 @@ 3 name - entity.name.class.proto + entity.name.class.message.proto end