Skip to content
Open
Show file tree
Hide file tree
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
37 changes: 6 additions & 31 deletions Kuin.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -63,41 +63,16 @@ How to use:
</dict>
<dict>
<key>match</key>
<string>\b((end )?func)\b</string>
<string>\b(end )?func\b</string>
<key>name</key>
<string>entity.name.function.kuin</string>
</dict>
<dict>
<key>match</key>
<string>\b((end )?class)\b</string>
<string>\b(end )?class\b</string>
<key>name</key>
<string>entity.name.function.class.kuin</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.import.kuin</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.import.kuin</string>
</dict>
</dict>
<key>match</key>
<string>\b(import)\s+(\w+)?</string>
<key>name</key>
<string>keyword.control.kuin</string>
</dict>
<dict>
<key>match</key>
<string> ?@new\b</string>
<key>name</key>
<string>keyword.control.new.kuin</string>
</dict>
<dict>
<key>match</key>
<string>\b(class|enum|alias)\b</string>
Expand All @@ -106,13 +81,13 @@ How to use:
</dict>
<dict>
<key>match</key>
<string>\b(skip|block|end|do|break|return|continue|assert|ifdef|debug|release)\b</string>
<string>\b(skip|block|end|do|break|ret|assert|dbg)\b</string>
<key>name</key>
<string>keyword.control.kuin</string>
</dict>
<dict>
<key>match</key>
<string>\b(if|else|elif|while|for|foreach|throw|try|catch|finally)\b</string>
<string>\b(if|else|elif|while|for|throw|try|catch|finally)\b</string>
<key>name</key>
<string>keyword.control.kuin</string>
</dict>
Expand All @@ -124,13 +99,13 @@ How to use:
</dict>
<dict>
<key>match</key>
<string>\b(true|false|null|nan|inf)\b</string>
<string>\b(true|false|null|inf)\b</string>
<key>name</key>
<string>constant.language.kuin</string>
</dict>
<dict>
<key>match</key>
<string>\b(var|const|int|byte8|byte16|byte32|byte64|sbyte8|sbyte16|sbyte32|sbyte64|float|char|bool|complex|money|ratio|list|stack|queue|dict)\b</string>
<string>\b(var|const|int|bit8|bit16|bit32|bit64|float|char|bool|list|stack|queue|dict)\b</string>
<key>name</key>
<string>storage.type.kuin</string>
</dict>
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ Kuin syntax definitions for Sublime Text 2

割り当てる拡張子を変更する必要があれば、Kuin.tmLanguageファイルをエディタで開き、dict > key[fileTypes] > array/string を編集してください。


数値リテラルや、いくつかの@in/@nin等の演算子については未対応です。
コメントのネストも未対応です。

{ Kuin 0.3で文法が固定されるみたい[要出典]なので、その後にちゃんとした定義ファイルに更新します。 }
数値リテラルや、コメントのネストに未対応です。