From 61a5b9da90fad25f227d2d3e0187fe753cb10d34 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 2 Jan 2016 18:11:19 -0800 Subject: [PATCH] Syntax highlight #, even if not using Objective-C. --- Parser.ypp.in | 2 +- Scanner.lpp.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Parser.ypp.in b/Parser.ypp.in index 5239ff1..d969fdf 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -266,7 +266,6 @@ type; }) @begin E4X ObjectiveC %token At "@" -%token Pound "#" @end %token Ampersand "&" @@ -316,6 +315,7 @@ type; }) %token Comma "," %token Question "?" %token SemiColon ";" +%token Pound "#" %token NewLine "\n" %token __ "" diff --git a/Scanner.lpp.in b/Scanner.lpp.in index 04d0580..a928264 100644 --- a/Scanner.lpp.in +++ b/Scanner.lpp.in @@ -345,7 +345,6 @@ XMLName {XMLNameStart}{XMLNamePart}* @begin E4X ObjectiveC "@" L F(tk::At, hi::Operator); -"#" L F(tk::Pound, hi::Operator); @end "&" L F(tk::Ampersand, hi::Operator); @@ -395,6 +394,7 @@ XMLName {XMLNameStart}{XMLNamePart}* "," L F(tk::Comma, hi::Structure); "?" L F(tk::Question, hi::Structure); ";" L F(tk::SemiColon, hi::Structure); +"#" L F(tk::Pound, hi::Operator); "(" L F(tk::OpenParen, hi::Structure); ")" L F(tk::CloseParen, hi::Structure); -- 2.45.2