File: lammps.vim

package info (click to toggle)
liggghts 3.0.3%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 106,076 kB
  • ctags: 34,406
  • sloc: cpp: 363,723; python: 21,138; ansic: 9,146; perl: 3,687; sh: 2,841; fortran: 2,802; xml: 788; makefile: 485; objc: 238; lisp: 169; f90: 145; csh: 16; awk: 14
file content (63 lines) | stat: -rwxr-xr-x 2,538 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
" Vim syntax file
" Language:	         Lammps Simulation Script File
" Maintainer:        Gerolf Ziegenhain <gerolf@ziegenhain.com>
" Updates:           Axel Kohlmeyer <akohlmey@gmail.com>, Sam Bateman <sam.bateman@nrlssc.navy.mil>, Daniel Möller Montull <d.moller.m@gmail.com>
" Latest Revision:   2012-06-19

syn clear

syn keyword	lammpsOutput	log write_restart restart dump undump thermo thermo_modify thermo_style print 
syn keyword	lammpsRead	include read read_restart read_data
syn keyword	lammpsLattice	boundary units atom_style lattice region create_box create_atoms dielectric
syn keyword	lammpsLattice	delete_atoms change_box dimension replicate
syn keyword	lammpsParticle	pair_coeff pair_style pair_modify mass velocity angle_coeff angle_style
syn keyword	lammpsParticle	atom_modify atom_style bond_coeff bond_style delete_bonds kspace_style
syn keyword	lammpsParticle	kspace_modify dihedral_style dihedral_coeff improper_style improper_coeff
syn keyword	lammpsSetup	min_style fix_modify run_style timestep neighbor neigh_modify fix unfix
syn keyword	lammpsSetup	communicate newton nthreads processors reset_timestep
syn keyword	lammpsRun	minimize run  
syn keyword	lammpsDefine	variable group compute

syn keyword	lammpsRepeat	jump next loop

syn keyword	lammpsOperator	equal add sub mult div 

syn keyword	lammpsConditional if then elif else

syn keyword	lammpsSpecial	EDGE NULL &

syn region	lammpsString	start=+'+ end=+'+	oneline
syn region	lammpsString	start=+"+ end=+"+	oneline

syn match	lammpsNumber	"\<[0-9]\+[ij]\=\>"
syn match	lammpsFloat	"\<[0-9]\+\.[0-9]*\([edED][-+]\=[0-9]\+\)\=[ij]\=\>"
syn match	lammpsFloat	"\.[0-9]\+\([edED][-+]\=[0-9]\+\)\=[ij]\=\>"
syn match	lammpsFloat	"\<[0-9]\+[edED][-+]\=[0-9]\+[ij]\=\>"

syn match	lammpsComment	"#\(.*&\s*\n\)*.*$"

syn match	lammpsVariable	"\$\({[a-zA-Z0-9_]\+}\)"
syn match	lammpsVariable	"\$[A-Za-z]"

if !exists("did_lammps_syntax_inits")
  let did_lammps_syntax_inits = 1
  hi link lammpsOutput		Function
  hi link lammpsRepeat		Repeat
  hi link lammpsRead		Include
  hi link lammpsLattice		Typedef
  hi link lammpsParticle	Typedef
  hi link lammpsSetup		Typedef
  hi link lammpsDefine		Define
  hi link lammpsRun		Statement
  hi link lammpsNumber		Number
  hi link lammpsFloat		Float
  hi link lammpsString		String
  hi link lammpsComment		Comment
  hi link lammpsLoop		Repeat
  hi link lammpsVariable	Identifier
  hi link lammpsConditional	Conditional
  hi link lammpsOperator	Operator
  hi link lammpsSpecial		Number
endif

let b:current_syntax = "lammps"