From 4b3bfc642463b1cc064dd84409d83c2f41c3af92 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 18 May 2014 09:55:39 +0000 Subject: [PATCH] LunaCON: allow '.' as non-first identifer character. git-svn-id: https://svn.eduke32.com/eduke32@4473 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/lunatic/doc/lunacon.txt | 2 +- polymer/eduke32/source/lunatic/lunacon.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/lunatic/doc/lunacon.txt b/polymer/eduke32/source/lunatic/doc/lunacon.txt index 9ae7a4147..395b9dc43 100644 --- a/polymer/eduke32/source/lunatic/doc/lunacon.txt +++ b/polymer/eduke32/source/lunatic/doc/lunacon.txt @@ -270,7 +270,7 @@ where * allowed first characters are: letters, digits, and those in ```_*?`'' * allowed following characters are the same as allowed first characters, plus - ``+++++'' and ``++-++'' . + ``+++++'', ``++-++'' and ``++.++''. // ^ `+` and `-` diff --git a/polymer/eduke32/source/lunatic/lunacon.lua b/polymer/eduke32/source/lunatic/lunacon.lua index defcf7550..46f804085 100644 --- a/polymer/eduke32/source/lunatic/lunacon.lua +++ b/polymer/eduke32/source/lunatic/lunacon.lua @@ -575,7 +575,7 @@ end -- NOTE: in C-CON, the slash and backslash can also be part of an identifier, -- but this is likely to support file names in other places. local BAD_ID_CHARS0 = "_*?" -- allowed 1st identifier chars -local BAD_ID_CHARS1 = "_*-+?" -- allowed following identifier chars +local BAD_ID_CHARS1 = "_*-+?." -- allowed following identifier chars local function truetab(tab) local ttab = {}