From db17dab7b1047e6c56b28accf8d34c085721424f Mon Sep 17 00:00:00 2001 From: xolatile Date: Thu, 4 Apr 2024 16:45:26 -0400 Subject: [PATCH] Minor revision... --- heyo.x | 6 +++--- xiranda.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/heyo.x b/heyo.x index e0e6148..306c793 100644 --- a/heyo.x +++ b/heyo.x @@ -1,9 +1,9 @@ type integer = 4; type character = 1; +text: character [] = "Heyo world!"; +size: integer = 12; + main (): system (1, 1, #text, size); return;; - -text: character [] = "Heyo world!"; -size: integer = 12; diff --git a/xiranda.c b/xiranda.c index 95be4ab..3875a49 100644 --- a/xiranda.c +++ b/xiranda.c @@ -55,13 +55,13 @@ int main (void) { int coin_ignore = syntax_define (false, false, "---", "\n", '\\', colour_pink, effect_normal); int coin_string = syntax_define (false, false, "\"", "\"", '\\', colour_red, effect_normal); int coin_type = syntax_define (false, true, "type", " \t\n", '\0', colour_yellow, effect_normal); - int coin_loop = syntax_define (false, true, "loop", " \t\n", '\0', colour_yellow, effect_normal); - int coin_if = syntax_define (false, true, "if", " \t\n", '\0', colour_yellow, effect_normal); - int coin_else = syntax_define (false, true, "else", " \t\n", '\0', colour_yellow, effect_normal); - int coin_case = syntax_define (false, true, "case", " \t\n", '\0', colour_yellow, effect_normal); - int coin_return = syntax_define (false, true, "return", " \t\n", '\0', colour_yellow, effect_normal); + int coin_loop = syntax_define (false, true, "loop", " \t\n(:", '\0', colour_yellow, effect_normal); + int coin_if = syntax_define (false, true, "if", " \t\n(", '\0', colour_yellow, effect_normal); + int coin_else = syntax_define (false, true, "else", " \t\n:", '\0', colour_yellow, effect_normal); + int coin_case = syntax_define (false, true, "case", " \t\n(", '\0', colour_yellow, effect_normal); + int coin_return = syntax_define (false, true, "return", " \t\n(;", '\0', colour_yellow, effect_normal); int coin_import = syntax_define (false, true, "import", " \t\n", '\0', colour_yellow, effect_normal); - int coin_system = syntax_define (false, true, "system", " \t\n", '\0', colour_yellow, effect_normal); + int coin_system = syntax_define (false, true, "system", " \t\n(", '\0', colour_yellow, effect_normal); int coin_number = syntax_define (true, true, "0123456789", " \t\n,.;:()[]#", '\0', colour_blue, effect_normal); int coin_marker = syntax_define (true, true, "abcdefghijklmnopqrstuvwxyz_", " \t\n,.;:()[]#", '\0', colour_white, effect_normal); int coin_symbol = syntax_define (true, false, ",.;:=#[]()+-*/%&|!", "", '\0', colour_cyan, effect_normal); @@ -71,7 +71,7 @@ int main (void) { for (offset = 0; buffer [offset] != '\0'; offset += length) { select = syntax_select (& buffer [offset], & length); if (select >= syntax_count) { - terminal_colour (colour_red, effect_reverse); + terminal_colour (colour_grey, effect_normal); } else { terminal_colour (syntax_colour [select], syntax_effect [select]); }