-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIFNaturalHighlighter.h
46 lines (37 loc) · 956 Bytes
/
IFNaturalHighlighter.h
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
45
46
//
// IFNaturalHighlighter.h
// Inform
//
// Created by Andrew Hunter on 18/11/2004.
// Copyright 2004 Andrew Hunter. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "IFSyntaxStorage.h"
#import "IFInform6Highlighter.h"
// Natural Inform states
enum {
IFNaturalStateTitle = IFSyntaxStateDefault,
IFNaturalStateSpace,
IFNaturalStateText,
IFNaturalStateComment,
IFNaturalStateQuote,
IFNaturalStateTitleQuote,
IFNaturalStateSubstitution,
IFNaturalStateHeading,
IFNaturalStateBlankLine,
IFNaturalStateMaybeInform6
};
// Natural Inform modes
enum {
IFNaturalModeStandard = 0,
IFNaturalModeInform6,
IFNaturalModeInform6MightEnd
};
//
// Natural Inform syntax highlighter
//
@interface IFNaturalHighlighter : NSObject<IFSyntaxHighlighter> {
IFSyntaxStorage* activeStorage; // Syntax storage that we're using
IFInform6Highlighter* inform6Highlighter; // Highlighter for portions of the file that are Inform 6 code
}
@end