Tcsh: fix operators and keywords

Authored by jpoelen on May 26 2019, 9:39 PM.


  • missing foreach and end
  • fix folding with if (expr) cmd
  • missing != with [ ... ]
  • rules for arithmetic comparison
  • add dsControlFlow style
  • [[ ... ]] does not exists

Diff Detail

R216 Syntax Highlighting
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
jpoelen requested review of this revision.May 26 2019, 9:39 PM
jpoelen created this revision.
cullmann accepted this revision.May 27 2019, 5:45 AM

Change looks reasonable + test case => thanks, please push

This revision is now accepted and ready to land.May 27 2019, 5:45 AM

I forgot to ask about running the tests. Is it normal that system syntax files take precedence if we have an index.katesyntax? Currently I have to run the tests by setting the environment variable XDG_DATA_DIRS.

This revision was automatically updated to reflect the committed changes.

Actually the resource should be recreated on syntax file changes and be used.

OK I understand. Initially I had not changed the version number of txsh.xml and it is based on the reference in /usr/share/org.kde.syntax-highlighting/syntax/index.katesyntax rather than in the repository.
And the fact that the versions in the index file were newer than my xml files... I had errors with