-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIFInform6Highlighter.h
More file actions
44 lines (36 loc) · 845 Bytes
/
IFInform6Highlighter.h
File metadata and controls
44 lines (36 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// IFInform6Highlighter.h
// Inform
//
// Created by Andrew Hunter on 18/11/2004.
// Copyright 2004 Andrew Hunter. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "IFSyntaxStorage.h"
union IFInform6State {
struct IFInform6Outer {
int comment:1;
int singleQuote:1;
int doubleQuote:1;
int statement:1;
int afterMarker:1;
int highlight:1;
int highlightAll:1;
int colourBacktrack:1;
int afterRestart:1;
int waitingForDirective:1; // Inverted!
int dontKnowFlag:1;
unsigned int backtrackColour: 5;
unsigned int inner:16;
} bitmap;
unsigned int state;
};
typedef union IFInform6State IFInform6State;
//
// A syntax highlighter for Inform 6 files
// (based on the Inform technical manual)
//
@interface IFInform6Highlighter : NSObject<IFSyntaxHighlighter> {
IFSyntaxStorage* activeStorage;
}
@end