ToolMatter
Your Apps in Action
Risersoft
Buy
Try
Explore
Documentation
Public
Use this form to visualize Language grammar description files in Textmate and compatible editors.
{{repoTitle.MainEntity}}
scopeName - This should be a unique name for the grammar, following the convention of being a dot-separated name where each new (left-most) part specializes the name. Normally it would be a two-part name where the first is either `text` or `source` and the second is the name of the language or document type. But if you are specializing an existing type, you probably want to derive the name from the type you are specializing. For example Markdown is `text.html.markdown` and Ruby on Rails (rhtml files) is `text.html.rails`. The advantage of deriving it from (in this case) `text.html` is that everything which works in the `text.html` scope will also work in the `text.html.«something»` scope (but with a lower precedence than something specifically targeting `text.html.«something»`).
firstLineMatch - A regular expression which is matched against the first line of the document when it is first loaded. If it matches, the grammar is used for the document.
uuid - When the grammer is part of a larger bundle (ie., grammer + theme + whatever), the uuid helps classify which file is a part of which bundle.
foldingStartMarker - Regular expression that lines (in the document) are matched against. If a line matches the pattern, it starts a foldable block.
foldingStopMarker - Regular expressions that lines (in the document) are matched against. If a line matches pattern, it ends a foldable block.
fileTypes An array of file type extensions that the grammar should (by default) be used with.
#
Values
Actions
{{$index+1}}.
patterns patterns
#
comment
name
include
match
begin
end
while
contentName
Actions
{{$index+1}}.
{{row.comment}}
{{row.name}}
{{row.include}}
{{row.match}}
{{row.begin}}
{{row.end}}
{{row.while}}
{{row.contentName}}
.repository
_
injectionSelector - The key is a scope selector that specifies which scope(s) the current grammar should be injected in.
.injections
_
{{repoTitle.MainEntity}}
comment - A generic text used to describe or explain the rule.
name - The scope name which gets assigned to the capture matched. This should generally be derived from one of the standard names.
include - This key allows you to reference a different language (value == scope name), recursively reference the grammar itself (value == "$self") or a rule declared in this file’s repository (value starts with a pound (#) sign).
match - A regular expression which is used to identify the portion of text to which the name should be assigned.
begin - The `begin` key is a regular expression pattern that allows matches which span several lines. Captures from the `begin` pattern can be referenced in the corresponding `end` or `while` pattern by using normal regular expression back-references, eg. `\1$`.
end - A regular expression pattern that, when matched, ends the multi-line block started by the `begin` key.
while - A regular expression pattern that, while matched, continues the multi-line block started by the `begin` key.
contentName - This key is similar to the `name` key but it only assigns the name to the text between what is matched by the `begin`/`end` patterns.
.captures
_patterns
.beginCaptures
_patterns
.endCaptures
_patterns
.whileCaptures
_patterns
patterns patterns
#
comment
name
include
match
begin
end
while
contentName
Actions
{{$index+1}}.
{{row.comment}}
{{row.name}}
{{row.include}}
{{row.match}}
{{row.begin}}
{{row.end}}
{{row.while}}
{{row.contentName}}
.repository
_patterns
Download Json
{{message}}