Home Explore Blog CI



neovim

26th chunk of `runtime/doc/syntax.txt`
771f6b665a5ed06077fda12ebcc844e82b8804b1d40888420000000100000fb7
 mv_Galois	 mv_geometry	mv_numapprox	mv_simplex
  mv_GaussInt	 mv_grobner	mv_numtheory	mv_stats
  mv_LREtools	 mv_group	mv_orthopoly	mv_student
  mv_combinat	 mv_inttrans	mv_padic	mv_sumtools
  mv_combstruct mv_liesymm	mv_plots	mv_tensor
  mv_difforms	 mv_linalg	mv_plottools	mv_totorder
  mv_finance	 mv_logic	mv_powseries


MARKDOWN			*ft-markdown-syntax* *g:markdown_minlines*
		 *g:markdown_fenced_languages* *g:markdown_syntax_conceal*

If you have long regions there might be wrong highlighting.  At the cost of
slowing down displaying, you can have the engine look further back to sync on
the start of a region, for example 500 lines (default is 50): >

	:let g:markdown_minlines = 500

If you want to enable fenced code block syntax highlighting in your markdown
documents you can enable like this: >

	:let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']

To disable markdown syntax concealing add the following to your vimrc: >

	:let g:markdown_syntax_conceal = 0


MATHEMATICA		*mma.vim* *ft-mma-syntax* *ft-mathematica-syntax*

Empty `*.m` files will automatically be presumed to be Matlab files unless you
have the following in your vimrc: >

	let filetype_m = "mma"

MBSYNC					*mbsync.vim* *ft-mbsync-syntax*

The mbsync application uses a configuration file to setup mailboxes names,
user and password. All files ending with `.mbsyncrc` or with the name
`isyncrc` will be recognized as mbsync configuration files.

MEDIAWIKI					*ft-mediawiki-syntax*

By default, syntax highlighting includes basic HTML tags like style and
headers |html.vim|. For strict Mediawiki syntax highlighting: >

	let g:html_no_rendering = 1

If HTML highlighting is desired, terminal-based text formatting such as bold
and italic is possible by: >

	let g:html_style_rendering = 1

MODULA2					*modula2.vim* *ft-modula2-syntax*

Vim will recognise comments with dialect tags to automatically select a given
dialect.

The syntax for a dialect tag comment is: >

	taggedComment :=
	  '(*!' dialectTag '*)'
	  ;

	dialectTag :=
	  m2pim | m2iso | m2r10
	  ;

	reserved words
	  m2pim = 'm2pim', m2iso = 'm2iso', m2r10 = 'm2r10'

A dialect tag comment is recognised by Vim if it occurs within the first 200
lines of the source file. Only the very first such comment is recognised, any
additional dialect tag comments are ignored.

Example: >

	DEFINITION MODULE FooLib; (*!m2pim*)
	...

Variable g:modula2_default_dialect sets the default Modula-2 dialect when the
dialect cannot be determined from the contents of the Modula-2 file: if
defined and set to 'm2pim', the default dialect is PIM.

Example: >

	let g:modula2_default_dialect = 'm2pim'


Highlighting is further configurable for each dialect via the following
variables.

Variable			Highlight ~
*modula2_iso_allow_lowline*	allow low line in identifiers
*modula2_iso_disallow_octals*	disallow octal integer literals
*modula2_iso_disallow_synonyms*	disallow "@", "&" and "~" synonyms

*modula2_pim_allow_lowline*	allow low line in identifiers
*modula2_pim_disallow_octals*	disallow octal integer literals
*modula2_pim_disallow_synonyms*	disallow "&" and "~" synonyms

*modula2_r10_allow_lowline*	allow low line in identifiers

MOO						*moo.vim* *ft-moo-syntax*

If you use C-style comments inside expressions and find it mangles your
highlighting, you may want to use extended (slow!) matches for C-style
comments: >

	:let moo_extended_cstyle_comments = 1

To disable highlighting of pronoun substitution patterns inside strings: >

	:let moo_no_pronoun_sub = 1

To disable highlighting of the regular expression operator "%|", and matching
"%(" and "%)" inside strings: >

	:let moo_no_regexp = 1

Unmatched double quotes can be recognized and highlighted as errors: >

	:let moo_unmatched_quotes = 1

To highlight builtin properties (.name, .location, .programmer etc.): >

	:let moo_builtin_properties = 1

Unknown builtin functions can be recognized and highlighted as errors.  If you
use this option, add your own extensions to the mooKnownBuiltinFunction

Title: Configuring Syntax Highlighting for Mathematica, MBSync, MediaWiki, Modula2, and MOO in Vim
Summary
This section details how to customize syntax highlighting for several languages within Vim. It includes Mathematica (distinguishing from Matlab files), MBSync (recognizing `.mbsyncrc` and `isyncrc` configuration files), MediaWiki (disabling/enabling HTML rendering and terminal-based text formatting), Modula2 (using dialect tags for automatic dialect selection and configuring highlighting for each dialect), and MOO (handling C-style comments, pronoun substitution, regular expressions, unmatched quotes, and highlighting builtin properties).