forked from idris-lang/Idris-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into providers
- Loading branch information
Showing
34 changed files
with
607 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
contribs/tool-support/sublime-text/Idris/Idris.JSON-tmLanguage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,70 @@ | |||
{ "name": "Idris", | |||
"scopeName": "source.idris", | |||
"fileTypes": ["idr"], | |||
"patterns": [ | |||
{ "name": "keyword.control.idris", | |||
"match": "\\b(if|then|else|do|let|in|data|codata|record|dsl|import)\\b" | |||
|
|||
}, | |||
{ "name": "keyword.control.idris", | |||
"match": "\\b(impossible|case|of|total|partial|mutual|infix|infixl|infixr)\\b" | |||
|
|||
}, | |||
{ "name": "keyword.control.idris", | |||
"match": "\\b(where|with|syntax|proof|postulate|using|namespace|class|instance)\\b" | |||
|
|||
}, | |||
{ "name": "keyword.control.idris", | |||
"match": "\\b(public|private|abstract|implicit)\\b" | |||
|
|||
}, | |||
{ "name": "keyword.other.idris", | |||
"match": "\\b(Type|Int|Integer|Float|Char|String|Ptr|Bits8|Bits16|Bits32|Bits64)\\b" | |||
}, | |||
{ "name": "constant.numeric.idris", | |||
"match": "\\b(S|O)\\b" | |||
}, | |||
{ "match": "\\b([0-9]+|0([xX][0-9a-fA-F]+|[oO][0-7]+))\\b", | |||
"name": "constant.numeric.idris", | |||
"comment": "integers" | |||
}, | |||
{ | |||
"match": "\\b([0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\\b", | |||
"name": "constant.numeric.float.idris", | |||
"comment": "floats" | |||
}, | |||
{ | |||
"name": "comment.line.idris", | |||
"match": "(--).*$\n?", | |||
"comment": "Line comment" | |||
}, | |||
{ "name": "comment.block.idris", | |||
"begin": "\\{-", | |||
"end": "-\\}", | |||
"comment": "Block comment" | |||
}, | |||
{ | |||
"name": "string.quoted.idris", | |||
"begin": "\"", | |||
"beginCaptures": { | |||
"0": { "name": "punctuation.definition.string.begin.idris"} | |||
}, | |||
"end": "\"", | |||
"endCaptures": { | |||
"0": { "name": "punctuation.definition.string.end.idris"} | |||
}, | |||
"patterns": [ | |||
{ "name": "constant.character.escape.idris", | |||
"match": "\\\\\"" | |||
} | |||
] | |||
|
|||
} | |||
|
|||
|
|||
], | |||
"repository": { | |||
|
|||
}, | |||
"uuid": "4dd16092-ffa5-4ba4-8075-e5da9f368a72" | |||
} |
126 changes: 126 additions & 0 deletions
126
contribs/tool-support/sublime-text/Idris/Idris.tmLanguage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,126 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>fileTypes</key> | |||
<array> | |||
<string>idr</string> | |||
</array> | |||
<key>name</key> | |||
<string>Idris</string> | |||
<key>patterns</key> | |||
<array> | |||
<dict> | |||
<key>match</key> | |||
<string>\b(if|then|else|do|let|in|data|codata|record|dsl|import)\b</string> | |||
<key>name</key> | |||
<string>keyword.control.idris</string> | |||
</dict> | |||
<dict> | |||
<key>match</key> | |||
<string>\b(impossible|case|of|total|partial|mutual|infix|infixl|infixr)\b</string> | |||
<key>name</key> | |||
<string>keyword.control.idris</string> | |||
</dict> | |||
<dict> | |||
<key>match</key> | |||
<string>\b(where|with|syntax|proof|postulate|using|namespace|class|instance)\b</string> | |||
<key>name</key> | |||
<string>keyword.control.idris</string> | |||
</dict> | |||
<dict> | |||
<key>match</key> | |||
<string>\b(public|private|abstract|implicit)\b</string> | |||
<key>name</key> | |||
<string>keyword.control.idris</string> | |||
</dict> | |||
<dict> | |||
<key>match</key> | |||
<string>\b(Type|Int|Integer|Float|Char|String|Ptr|Bits8|Bits16|Bits32|Bits64)\b</string> | |||
<key>name</key> | |||
<string>keyword.other.idris</string> | |||
</dict> | |||
<dict> | |||
<key>match</key> | |||
<string>\b(S|O)\b</string> | |||
<key>name</key> | |||
<string>constant.numeric.idris</string> | |||
</dict> | |||
<dict> | |||
<key>comment</key> | |||
<string>integers</string> | |||
<key>match</key> | |||
<string>\b([0-9]+|0([xX][0-9a-fA-F]+|[oO][0-7]+))\b</string> | |||
<key>name</key> | |||
<string>constant.numeric.idris</string> | |||
</dict> | |||
<dict> | |||
<key>comment</key> | |||
<string>floats</string> | |||
<key>match</key> | |||
<string>\b([0-9]+\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\b</string> | |||
<key>name</key> | |||
<string>constant.numeric.float.idris</string> | |||
</dict> | |||
<dict> | |||
<key>comment</key> | |||
<string>Line comment</string> | |||
<key>match</key> | |||
<string>(--).*$ | |||
?</string> | |||
<key>name</key> | |||
<string>comment.line.idris</string> | |||
</dict> | |||
<dict> | |||
<key>begin</key> | |||
<string>\{-</string> | |||
<key>comment</key> | |||
<string>Block comment</string> | |||
<key>end</key> | |||
<string>-\}</string> | |||
<key>name</key> | |||
<string>comment.block.idris</string> | |||
</dict> | |||
<dict> | |||
<key>begin</key> | |||
<string>"</string> | |||
<key>beginCaptures</key> | |||
<dict> | |||
<key>0</key> | |||
<dict> | |||
<key>name</key> | |||
<string>punctuation.definition.string.begin.idris</string> | |||
</dict> | |||
</dict> | |||
<key>end</key> | |||
<string>"</string> | |||
<key>endCaptures</key> | |||
<dict> | |||
<key>0</key> | |||
<dict> | |||
<key>name</key> | |||
<string>punctuation.definition.string.end.idris</string> | |||
</dict> | |||
</dict> | |||
<key>name</key> | |||
<string>string.quoted.idris</string> | |||
<key>patterns</key> | |||
<array> | |||
<dict> | |||
<key>match</key> | |||
<string>\\"</string> | |||
<key>name</key> | |||
<string>constant.character.escape.idris</string> | |||
</dict> | |||
</array> | |||
</dict> | |||
</array> | |||
<key>repository</key> | |||
<dict> | |||
</dict> | |||
<key>scopeName</key> | |||
<string>source.idris</string> | |||
<key>uuid</key> | |||
<string>4dd16092-ffa5-4ba4-8075-e5da9f368a72</string> | |||
</dict> | |||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
{ | |||
"cmd": ["idris", "$file"], | |||
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |||
"selector": "source.idris" | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
#### Idris support for Sublime Text 2 | |||
|
|||
To install, copy the Idris directory to Sublime Text's Packages directory. | |||
|
|||
To build a new Idris.tmLanguage file from the Idris.JSON-tmLanguage file, Sublime Text needs to have the AAAPackageDev package installed. | |||
|
|||
Syntax Definitions tutorial: https://sublime-text-unofficial-documentation.readthedocs.org/en/latest/extensibility/syntaxdefs.html | |||
|
|||
Syntax Definitions reference: https://sublime-text-unofficial-documentation.readthedocs.org/en/latest/reference/syntaxdefs.html | |||
|
|||
Most used scopes: http://manual.macromates.com/en/language_grammars#naming_conventions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.