Questions tagged [syntax-table]

is an Emacs Lisp data structure in which each character's syntactic role is defined. Other Emacs facilities, such as font lock, navigation, parsing, etc., scan these syntax tables to determine where words, symbols, and other syntactic constructs begin and end. Syntax tables are unique to every major mode. They are customizable and even overridable with text properties.

Filter by
Sorted by
Tagged with
0
votes
1answer
92 views

remove delimiter and comment typing from [Ljava.lang.String; in clojure-mode

Parsing parentheses: smie vs syntax table gives one example of how to use syntax-propertize-function but I wonder if someone could help me with another example. I'm working with clojure-mode. Here's ...
0
votes
1answer
28 views

How can I fix shift-select-mode with own syntax-table

So I have modified syntax table for moving with C-<left>. (defvar my-wacky-syntax-table (let ((table (make-syntax-table))) (modify-syntax-entry ?\( "w" table) (modify-...
0
votes
1answer
30 views

font-lock keywords and syntax-table mutually interfering

I would like to define something that font-locks a bit like a new sort of string-literal/comment. I might write: (font-lock-add-keywords 'emacs-lisp-mode (list '("<<.*>>" 0 'my-custom-...
0
votes
0answers
31 views

Syntax/indentation problems with Vue mode in Emacs 27 nightly

I'm using vue-mode, based on mmm-mode with Emacs 27 nightly from 10/10/2019. Since that Emacs update, I don't get any indentation support in the script section of a Vue file. Try this file with emacs -...
0
votes
1answer
36 views

extend/customize Makefile syntax table

I work with a Makefile-like infrastructure that allows having lists as variables and appending values to them. For this, the += operator is used. However, I'm having incorrect highlighting using this ...
0
votes
0answers
25 views

Can't define a glyph as a word constituent

I'd like Emacs to treat this dollar$sign as one word. So I evaluated this line (modify-syntax-entry ?$ "w") to have Emacs treat dollar sign as a word constituent rather than a symbol. However, ...
0
votes
1answer
180 views

Changing evil-forward-word behavior by modifying a syntax table

Currently in Emacs Lisp files I have the following behavior when I run evil-forward-word-begin |some-lisp-function some|-lisp-function some-|lisp-function some-lisp|-function some-lisp-|function In ...