Questions tagged [syntax]

is for grammar, structure, and order of language elements. Emacs provides many facilities for correcting syntax errors, building complex syntactic structures from simpler ones, and applying rules of composition with syntactical correctness.

Emacs covers a wide range of topics related to , which typically applies to programming (and data) languages, especially to Emacs Lisp. Some of these topics also have their own tags. For example:

Use additional tags besides as appropriate.

71 questions
10
votes
2 answers

Does word syntax take script into account?

I call count-words-region (M-x =) on US/RU/IPA string: HelloПривheləʊ The following message is printed: Region has 1 line, 4 words, and 14 characters. All symbols have w syntax, but differ in script: (char-syntax ?H) ; ?w (char-syntax ?П) ;…
gavenkoa
  • 3,452
  • 20
  • 37
4
votes
1 answer

Is the sharp dollar (#$) sign the same as load-file-name in Emacs?

I see Emacs use #$ in autoload files, but I don't known if there are any difference between #$ and load-file-name. When I use them in a file, they looks like the same and when I print them by M-: they are both nil. So I did some test but only get…
littleqz
  • 117
  • 3
0
votes
1 answer

Raw Syntax Descriptor for a char at POS. What is it?

What is the Raw Syntax Descriptor for a char at POS? Can I have some examples so I can understand what this thing is all about?
Dilna
  • 1
  • 3
  • 11
0
votes
1 answer

Syntax propertizing an exception to Python comment rule

I want to write a mode for the Cadabra 2 computer algebra system, which has Python-like syntax, with an exception of having the hash character # as a wild card in expressions, in addition to being a comment starter like in regular Python. Consider…