4

How can I express syntax rules like "[0-9/.:*+!_'?-] are valid symbol constituent, but not as the first char"?

Or "/ is a valid symbol constituent, but can only appear once and in the middle of a symbol".

expez
  • 381
  • 2
  • 8
  • I'm afraid that that's not possible with syntax tables, they are just simple classifiers. You'd probably want to take a look at [Semantic](https://www.gnu.org/software/emacs/manual/html_node/emacs/Semantic.html) – wvxvw Nov 26 '15 at 14:52
  • 3
    I am no expert, however syntax-propertize-function can express these more complicated rules like you describe. You can provide regular expressions (which should be able to describe such conditional behavior) via syntax-propertize-rules clauses. – InHarmsWay Nov 26 '15 at 15:03

0 Answers0