Documentation
¶
Overview ¶
Package syntax embeds the generated uf syntax definition.
Example (Embed) ¶
Example_embed checks that the packaged Sublime syntax definition is available.
const primitiveTypes = `(?:bool|duration|float|int|time)`
const subcommandType = `\\bsubcmd\\b`
if strings.Contains(string(UF), primitiveTypes) && strings.Contains(string(UF), subcommandType) {
fmt.Println("declaration types embedded")
return
}
panic("embedded syntax is missing the declaration type grammar")
Output: declaration types embedded
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UF []byte
UF is the Sublime Text syntax definition for .uf files.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.