From f5867fa13543612a19a1eddeea29cc0deb371e98 Mon Sep 17 00:00:00 2001 From: Jamie Steiner Date: Tue, 11 Jul 2017 18:58:02 +0300 Subject: [PATCH] Contrib branch (#13) Allow use of `.` in rpc definitions --- 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 adb6510..6d0a2c3 100644 --- a/Protobuf.YAML-tmLanguage +++ b/Protobuf.YAML-tmLanguage @@ -135,7 +135,7 @@ repository: end: \} patterns: - include: '#comments' - - begin: (rpc)\s+([A-Za-z][A-Z-a-z0-9_]+)\s*\((stream\s+)?([A-Za-z0-9_]+)\)\s+(returns)\s+\((stream\s+)?([A-Za-z0-9_]+)\)\{? + - begin: (rpc)\s+([A-Za-z][A-Z-a-z0-9_.]+)\s*\((stream\s+)?([A-Za-z0-9_]+)\)\s+(returns)\s+\((stream\s+)?([A-Za-z0-9_.]+)\)\{? beginCaptures: '1': {name: keyword.source.proto} '2': {name: entity.name.function} diff --git a/Protobuf.tmLanguage b/Protobuf.tmLanguage index f52e49b..44be9bd 100644 --- a/Protobuf.tmLanguage +++ b/Protobuf.tmLanguage @@ -398,7 +398,7 @@ begin - (rpc)\s+([A-Za-z][A-Z-a-z0-9_]+)\s*\((stream\s+)?([A-Za-z0-9_]+)\)\s+(returns)\s+\((stream\s+)?([A-Za-z0-9_]+)\)\{? + (rpc)\s+([A-Za-z][A-Z-a-z0-9_.]+)\s*\((stream\s+)?([A-Za-z0-9_]+)\)\s+(returns)\s+\((stream\s+)?([A-Za-z0-9_.]+)\)\{? beginCaptures 1