Skip to content

Commit

Permalink
fix some scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
315234 committed Jul 1, 2016
1 parent b175971 commit c6da016
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grammars/FortranModern.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ contexts:
\s* ({{eol_comment}})?)
$
captures:
1: entity.name.tag.construct_name
1: entity.name.tag.construct_name.fortran
2: keyword.control.block.fortran
3: comment.line.fortran
Expand Down Expand Up @@ -548,20 +548,20 @@ contexts:
# Matches all "end construct" statements, where a construct is required
- match: (?xi:(?=end \s* {{construct_keyword}} \b ))
push:
- meta_content_scope: meta.end-statement.1.fortran
- meta_content_scope: meta.end-statement.fortran
- include: pop-at-end-of-line
# end keyword
- match: (?xi:end)
scope: keyword.control.end.fortran
set:
# construct keyword
- include: pop-at-end-of-line
- meta_content_scope: meta.end-statement.1.fortran
- meta_content_scope: meta.end-statement.fortran
- match: (?xi:{{construct_keyword}} \b)
scope: keyword.control.construct.fortran
set:
# possible construct label
- meta_content_scope: meta.end-statement.1.fortran
- meta_content_scope: meta.end-statement.fortran
- include: pop-at-end-of-line
- match: (?xi:{{ident}})
scope: entity.name.tag.construct_name.fortran
Expand Down Expand Up @@ -674,7 +674,7 @@ contexts:
0: meta.goto_statement.fortran
1: keyword.control.goto.fortran
2: keyword.control.goto.fortran
3: entity.name.statement-label
3: entity.name.statement-label.fortran

if_block_statement:
- match: |
Expand Down

0 comments on commit c6da016

Please sign in to comment.