CVSROOT: /home/x-cvs Module name: xc Changes by: [EMAIL PROTECTED] 03/01/15 19:50:47
Log message: o Changed syntax highlight and indentation lisp code to allow defining tokens that finish and start a new syntax table at the same time. This can be useful for file formats where one section implicitly finishes the previous one. Example of use: (syntoken "<regex-pattern>" :switch :old-state :begin :new-state) o Added 3 new syntax highlight definitions: rpm.lsp => RedHat Rpm spec files xconf.lsp => XF86Config sh.lsp => sh, bash, ksh files The file rpm.lsp has a definition commented out, because some other things must be resolved before being usable for editing (for viewing only it is good). It proves that the code for finishing and starting a new section is working correctly, but some code must be reviewed, because it will frequently reparse the entire file at every character typed, since the parser never really returns to the toplevel state, the parser will frequently keep backing up lines until the start of the file reached while searching for a "safe restart point". One possible fix is to just limit the number of backuped lines, the only problem is that it would get "out of sync" sometimes (and the number of forward parsed lines must be also limited, as it may never return to the toplevel). Modified files: xc/programs/xedit/lisp/modules/: Imakefile indent.lsp syntax.lsp xedit.lsp Added files: xc/programs/xedit/lisp/modules/progmodes/: rpm.lsp sh.lsp xconf.lsp Revision Changes Path 1.12 +4 -1 xc/programs/xedit/lisp/modules/Imakefile 1.6 +44 -47 xc/programs/xedit/lisp/modules/indent.lsp 1.11 +57 -71 xc/programs/xedit/lisp/modules/syntax.lsp 1.9 +7 -1 xc/programs/xedit/lisp/modules/xedit.lsp _______________________________________________ Cvs-commit mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/cvs-commit