mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Grammar update
This commit is contained in:
2
vendor/grammars/Sublime-Inform/.gitignore
vendored
Normal file
2
vendor/grammars/Sublime-Inform/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
.DS_Store
|
||||
6
vendor/grammars/Sublime-Inform/Inform7/book.sublime-snippet
vendored
Normal file
6
vendor/grammars/Sublime-Inform/Inform7/book.sublime-snippet
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[Book $1 - ${2:Title}
|
||||
]]></content>
|
||||
<tabTrigger>book</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
6
vendor/grammars/Sublime-Inform/Inform7/chapter.sublime-snippet
vendored
Normal file
6
vendor/grammars/Sublime-Inform/Inform7/chapter.sublime-snippet
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[Chapter $1 - ${2:Title}
|
||||
]]></content>
|
||||
<tabTrigger>chapter</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
7
vendor/grammars/Sublime-Inform/Inform7/door.sublime-snippet
vendored
Normal file
7
vendor/grammars/Sublime-Inform/Inform7/door.sublime-snippet
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<snippet>
|
||||
<content><![CDATA[
|
||||
${1:DoorName} is a door. $1 is ${2:Direction} from ${3:Room}.
|
||||
]]></content>
|
||||
<tabTrigger>door</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
34
vendor/grammars/Sublime-Inform/Inform7/inform7.JSON-tmLanguage
vendored
Normal file
34
vendor/grammars/Sublime-Inform/Inform7/inform7.JSON-tmLanguage
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
{ "name": "Inform7",
|
||||
"scopeName": "source.Inform7",
|
||||
"fileTypes": ["i7x"],
|
||||
"patterns": [
|
||||
{ "name": "keyword.control.Inform7",
|
||||
"match": "\\b(Include|Release)\\b"
|
||||
},
|
||||
{ "name" : "comment.block.Inform7",
|
||||
"begin" : "\\[",
|
||||
"end" : "\\]",
|
||||
"comment" : "All comments in Inform7 are delimited this way."
|
||||
},
|
||||
{ "name" : "string.quoted.double.Inform7",
|
||||
"begin" : "\"",
|
||||
"end" : "\"",
|
||||
"patterns": [
|
||||
{ "name" : "keyword.operator.Inform7",
|
||||
"begin" : "\\[",
|
||||
"end" : "\\]",
|
||||
"comment" : "For logic inside of strings."
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "name" : "storage.type.Inform7",
|
||||
"match" : "(Volume|Book|Chapter|Part|Section|Table)\\s+\\d?\\s+-?\\s+((?:\\w|\\s|-)*)",
|
||||
"comment": "Matches headings for major sections in Inform7"
|
||||
},
|
||||
{ "name": "constant.numeric.Inform7",
|
||||
"match": "([0-9])+",
|
||||
"comment":"Gotta call out the numbers!"
|
||||
}
|
||||
],
|
||||
"uuid": "0c4cbdee-beb7-4ea6-af56-27246d479373"
|
||||
}
|
||||
74
vendor/grammars/Sublime-Inform/Inform7/inform7.tmLanguage
vendored
Executable file
74
vendor/grammars/Sublime-Inform/Inform7/inform7.tmLanguage
vendored
Executable file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>fileTypes</key>
|
||||
<array>
|
||||
<string>i7x</string>
|
||||
<string>inform</string>
|
||||
<string>ni</string>
|
||||
</array>
|
||||
<key>name</key>
|
||||
<string>Inform7</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(Include|Release)\b</string>
|
||||
<key>name</key>
|
||||
<string>keyword.control.Inform7</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\[</string>
|
||||
<key>comment</key>
|
||||
<string>All comments in Inform7 are delimited this way.</string>
|
||||
<key>end</key>
|
||||
<string>\]</string>
|
||||
<key>name</key>
|
||||
<string>comment.block.Inform7</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>"</string>
|
||||
<key>end</key>
|
||||
<string>"</string>
|
||||
<key>name</key>
|
||||
<string>string.quoted.double.Inform7</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\[</string>
|
||||
<key>comment</key>
|
||||
<string>For logic inside of strings.</string>
|
||||
<key>end</key>
|
||||
<string>\]</string>
|
||||
<key>name</key>
|
||||
<string>keyword.operator.Inform7</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>comment</key>
|
||||
<string>Matches headings for major sections in Inform7</string>
|
||||
<key>match</key>
|
||||
<string>(Volume|Book|Chapter|Part|Section|Table)\s+\d?\s+-?\s+((?:\w|\s|-)*)</string>
|
||||
<key>name</key>
|
||||
<string>storage.type.Inform7</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>comment</key>
|
||||
<string>Gotta call out the numbers!</string>
|
||||
<key>match</key>
|
||||
<string>([0-9])+</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.Inform7</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>scopeName</key>
|
||||
<string>source.Inform7</string>
|
||||
<key>uuid</key>
|
||||
<string>0c4cbdee-beb7-4ea6-af56-27246d479373</string>
|
||||
</dict>
|
||||
</plist>
|
||||
8
vendor/grammars/Sublime-Inform/Inform7/object.sublime-snippet
vendored
Normal file
8
vendor/grammars/Sublime-Inform/Inform7/object.sublime-snippet
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[
|
||||
$1 is a portable thing in ${2:Room} ${3:ShortDescription}
|
||||
The description of $1 is ${4:Description}
|
||||
]]></content>
|
||||
<tabTrigger>object</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
6
vendor/grammars/Sublime-Inform/Inform7/part.sublime-snippet
vendored
Normal file
6
vendor/grammars/Sublime-Inform/Inform7/part.sublime-snippet
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[Part $1 - ${2:Title}
|
||||
]]></content>
|
||||
<tabTrigger>part</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
7
vendor/grammars/Sublime-Inform/Inform7/room.sublime-snippet
vendored
Normal file
7
vendor/grammars/Sublime-Inform/Inform7/room.sublime-snippet
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<snippet>
|
||||
<content><![CDATA[
|
||||
${1:RoomName} is a room in ${2:Region}. "${3:Description}"
|
||||
]]></content>
|
||||
<tabTrigger>room</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
11
vendor/grammars/Sublime-Inform/Inform7/scene.sublime-snippet
vendored
Normal file
11
vendor/grammars/Sublime-Inform/Inform7/scene.sublime-snippet
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<snippet>
|
||||
<content><![CDATA[
|
||||
${1:SceneName} is a Scene.
|
||||
$1 begins when $2 .
|
||||
$1 ends when $3 .
|
||||
When $1 begins: $4 .
|
||||
When $1 ends: $5 .
|
||||
]]></content>
|
||||
<tabTrigger>scene</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
6
vendor/grammars/Sublime-Inform/Inform7/section.sublime-snippet
vendored
Normal file
6
vendor/grammars/Sublime-Inform/Inform7/section.sublime-snippet
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[Section $1 - ${2:Title}
|
||||
]]></content>
|
||||
<tabTrigger>section</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
6
vendor/grammars/Sublime-Inform/Inform7/volume.sublime-snippet
vendored
Normal file
6
vendor/grammars/Sublime-Inform/Inform7/volume.sublime-snippet
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[Volume $1 - ${2:Title}
|
||||
]]></content>
|
||||
<tabTrigger>volume</tabTrigger>
|
||||
<scope>source.Inform7</scope>
|
||||
</snippet>
|
||||
21
vendor/grammars/Sublime-Inform/LICENSE.txt
vendored
Normal file
21
vendor/grammars/Sublime-Inform/LICENSE.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Nate Dickson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
8
vendor/grammars/Sublime-Inform/README.md
vendored
Normal file
8
vendor/grammars/Sublime-Inform/README.md
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
#Inform7 Package for Sublime Text 2
|
||||
This package has a lot of little files that make Inform7 easier to edit in Sublime Text 2. that's why it's called what it is, you see.
|
||||
##Usage
|
||||
Grab the zip file, unzip it, and put it in your ```Packages``` Directory.
|
||||
That's pretty much it. Open an ```i7x``` file in Sublime Text 2 and it'll be all highlighted and there's a bunch of snippets you can use and all that.
|
||||
|
||||
##Want to submit a pull request for this readme file?
|
||||
Please, please do.
|
||||
Reference in New Issue
Block a user