Skip to content

Commit

Permalink
[Go] misc tweaks from code review
Browse files Browse the repository at this point in the history
Co-authored-by: deathaxe <deathaxe@web.de>
  • Loading branch information
mitranim and deathaxe authored Mar 29, 2022
1 parent eb48d10 commit f149e19
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Go/Go.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,7 @@ contexts:

pop-type-assertion:
- include: pop-on-paren-end
- match: (?=\S)
push: pop-type
- include: match-type

match-parens:
- match: \(
Expand Down Expand Up @@ -989,8 +988,7 @@ contexts:
- include: pop-before-terminator
- match: (?=\()
set: pop-func-parameter-list
- match: (?=\S)
set: pop-type
- include: pop-type

# https://golang.org/ref/spec#Function_types
#
Expand Down Expand Up @@ -1063,8 +1061,7 @@ contexts:
- include: match-comma
- include: match-ellipsis
- include: match-keywords
- match: (?=\S)
push: pop-type
- include: match-type

# At the time of writing, this is the only part of Go that uses "untyped"
# syntax for parameters, similar to function definitions in dynamic languages
Expand Down Expand Up @@ -1173,7 +1170,7 @@ contexts:

match-type:
- match: (?=\S)
push: pop-type
push: [pop-after-type, pop-type-single]

pop-type:
- match: (?=\S)
Expand Down

0 comments on commit f149e19

Please sign in to comment.