Skip to content

Commit

Permalink
Fix syntax error for service name
Browse files Browse the repository at this point in the history
  • Loading branch information
anqiansong committed May 17, 2022
1 parent ee106c3 commit 267d75f
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 157 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'cn.xiaoheiban'
version '1.1.2'
version '1.1.3'

repositories {
mavenCentral()
Expand Down Expand Up @@ -36,7 +36,7 @@ patchPluginXml {
sinceBuild '193.0'
changeNotes """
<ul>
<li> Fix syntax error for prefix</li>
<li> Fix syntax error for service name</li>
</ul>
"""
}
4 changes: 2 additions & 2 deletions src/main/java/cn/xiaoheiban/antlr4/ApiLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ RUNE: 'rune';
TIME: 'time.Time';

// HTTP PATH
PATH: (('/'|'/:'|'-') IDENT)+ | P | SLASH;
fragment P: (IDENT ('/'|'/:'|'-'))+ IDENT;
PATH: (('/'|'/:') IDENT)+ | P | SLASH;
fragment P: (IDENT ('/'|'/:'))+ IDENT;
DURATION: NUMBER ('ns'|'us'|'µs'|'ms'|'s'|'m'|'h');

// MAKER
Expand Down
Loading

0 comments on commit 267d75f

Please sign in to comment.