Skip to content

SyntaxSpecification

Matthew L Daniel edited this page Jul 10, 2015 · 3 revisions
  1. summary Defines syntax types
  2. labels Specifications
<wiki:toc max_depth="1"></wiki:toc>

Introduction

Defines syntax types. Files have the ending .xcsynspec

Parameters

|| `Identifier ` || string || Unique Identifier || || `Name ` || string || Name || || `BasedOn` || string || Unique Identifier of parent || || `IncludeInPrefs ` || bool || || || `NameFormat ` || string || || || `Color ` || string || default color || || `OldUserDefault ` || string || Only used by built in filetypes ||


Example

From the D for XCode plugin

(
{
Identifier = "xcode.syntax.d.module";
IncludeInPrefs = NO;
NameFormat = "module %@";
},
{
Identifier = "xcode.syntax.d.import";
IncludeInPrefs = NO;
NameFormat = "import %@";
},
// MARK: Functions and Methods
{
Identifier = "xcode.syntax.definition.d.function";
BasedOn = "xcode.syntax.definition.function";
IncludeInPrefs = NO;
},
{
Identifier = "xcode.syntax.declaration.d.function";
BasedOn = "xcode.syntax.declaration.function";
IncludeInPrefs = NO;
},
)

Clone this wiki locally