Skip to content

Commit

Permalink
Grammar: Improve import rule
Browse files Browse the repository at this point in the history
Now better scopes the various portions of the import rule and gives more exact scopes.
  • Loading branch information
infininight committed Apr 27, 2015
1 parent 6161fec commit 13a4329
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Syntaxes/Ada.plist
Expand Up @@ -75,26 +75,36 @@
<key>match</key>
<string>\b(?i:(end))\b\s+(\w+(\.\w+)*|"(\+|-|=|\*|/)")\s?;</string>
<key>name</key>
<string>meta.function.ada</string>
<string>meta.function.end.ada</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.import.ada</string>
<string>keyword.control.import.limited.ada</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>string.unquoted.import.ada</string>
<string>keyword.control.import.private.ada</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>keyword.control.import.ada</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>entity.name.function.ada</string>
</dict>
</dict>
<key>match</key>
<string>(^|[\r\n])((?i:((limited[ \t]*)?(private[ \t]*)?with))[ \t]+(\w+(\.\w+)*);[ \t]*)+</string>
<string>^\s*(?:(limited)\s+)?(?:(private)\s+)?(with)\s+(\w+(\.\w+)*)\s*;</string>
<key>name</key>
<string>meta.function.ada</string>
<string>meta.import.ada</string>
</dict>
<dict>
<key>match</key>
Expand Down

0 comments on commit 13a4329

Please sign in to comment.