Skip to content

Commit

Permalink
Added comments regarding syntax definition keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mitchell committed Apr 16, 2013
1 parent 38f725d commit d802fc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FragariaAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ - (BOOL) fragariaDocument:(id)document willColourGroupWithBlock:(BOOL (^)(NSDict
NSInteger groupID = [[info objectForKey:SMLSyntaxGroupID] integerValue];
BOOL willColour = [[info objectForKey:SMLSyntaxWillColour] boolValue];
NSDictionary *attributes = [info objectForKey:SMLSyntaxAttributes];

// for key values see SMLSyntaxDefinition.h
NSDictionary *syntaxInfo = [info objectForKey:SMLSyntaxInfo];

// compiler comfort
Expand Down
5 changes: 5 additions & 0 deletions SMLSyntaxColouringDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ typedef NSInteger SMLSyntaxGroupInteger;
SMLSyntaxAttributes: NSDictionary of NSAttributed string attributes used to colour the string.
SMLSyntaxInfo: NSDictionary containing Fragaria syntax definition.
Syntax Info dictionary keys
===========================
For key values see SMLSyntaxDefinition.h
Delegate calling
================
Expand Down

0 comments on commit d802fc2

Please sign in to comment.