From 295b3464c34cb63f600264a428cfb8c57ab5cc62 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 16 Nov 2022 23:29:04 +0200 Subject: [IPL/HW02] Simplified some functions and properly implemented code folding --- .../Homework 02/commonlisp2html.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Year 2/Implementation of Programming Languages/Homework 02/commonlisp2html.l') diff --git a/Year 2/Implementation of Programming Languages/Homework 02/commonlisp2html.l b/Year 2/Implementation of Programming Languages/Homework 02/commonlisp2html.l index cbb226f..963cba8 100644 --- a/Year 2/Implementation of Programming Languages/Homework 02/commonlisp2html.l +++ b/Year 2/Implementation of Programming Languages/Homework 02/commonlisp2html.l @@ -55,7 +55,7 @@ CONST_VAR \+([0-9A-z.?-_])+\+ \n { return NEWLINE; } /* flex catches the longest possibility, so if some variable name contains a known word (function, macro, etc.), this will prevent it from highlighting */ -[A-z]+|" "|\t { yylval = strdup(yytext); return OTHER; } +[A-z!-'*-@]+|" "|\t { yylval = strdup(yytext); return OTHER; } %% -- cgit v1.3.1-26-gb76a