Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Добавил нейтив #38

Merged
merged 1 commit into from
May 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion grammars/1c.cson
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ patterns: [
name: "variable.assignment.bsl"
"2":
name: "keyword.operator.assignment.bsl"
end: "(?=;)"
end: "(?i:(?=(;|Иначе|Конец|Els|End)))"
patterns: [
{
include: "#basic"
Expand All @@ -131,6 +131,10 @@ patterns: [
name: "keyword.control.import.bsl"
match: "(?i)#(Использовать|Use)(?=[^\\wа-яё\\.]|$)"
}
{
name: "keyword.control.native.bsl"
match: "(?i)#native"
}
{
name: "keyword.control.bsl"
match: "(?i:(?<=[^\\wа-яё\\.]|^)(Прервать|Break|Продолжить|Continue|Возврат|Return)(?=[^\\wа-яё\\.]|$))"
Expand Down