Skip to content

Commit

Permalink
Grammars update
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Feb 3, 2016
1 parent fe4f7ce commit 5c9be43
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.6

* Добавлена подсветка #Область/#КонецОбласти

## 1.1.5

* Добавлено автодополнение по процедурам и функциям глобального контекста
Expand Down
29 changes: 29 additions & 0 deletions syntaxes/1c.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,35 @@
<key>match</key>
<string>(?i:#(Если|If|ИначеЕсли|ElsIf|Иначе|Else|КонецЕсли|EndIf).*(Тогда|Then)?)</string>
</dict>
<dict>
<key>comment</key>
<string>Region start</string>
<key>begin</key>
<string>(?i)(#(Область|Region))(\s+([\wа-яё]+))?</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.section.bsl</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>entity.name.section.bsl</string>
</dict>
</dict>
<key>end</key>
<string>$</string>
</dict>
<dict>
<key>comment</key>
<string>Region end</string>
<key>name</key>
<string>keyword.other.preprocessor.bsl</string>
<key>match</key>
<string>(?i)#(КонецОбласти|EndRegion)</string>
</dict>
</array>
</dict>
</plist>

0 comments on commit 5c9be43

Please sign in to comment.