2008-01-04 23:22:54 +08:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: Lammps Simulation Script File
|
2010-12-02 06:11:49 +08:00
|
|
|
" Maintainer: Gerolf Ziegenhain <gerolf@ziegenhain.com>
|
2012-06-19 23:32:37 +08:00
|
|
|
" Updates: Axel Kohlmeyer <akohlmey@gmail.com>, Sam Bateman <sam.bateman@nrlssc.navy.mil>, Daniel Möller Montull <d.moller.m@gmail.com>
|
2019-06-11 23:15:04 +08:00
|
|
|
" Latest Revision: 2019-06-11
|
2008-01-04 23:22:54 +08:00
|
|
|
|
|
|
|
syn clear
|
|
|
|
|
2019-06-11 23:15:04 +08:00
|
|
|
syn keyword lammpsOutput log write_data write_dump info shell write_restart restart dump undump thermo thermo_modify thermo_style print timer
|
|
|
|
syn keyword lammpsRead include read_restart read_data read_dump molecule
|
2012-06-19 23:32:37 +08:00
|
|
|
syn keyword lammpsLattice boundary units atom_style lattice region create_box create_atoms dielectric
|
2019-06-11 23:15:04 +08:00
|
|
|
syn keyword lammpsLattice delete_atoms displace_atoms change_box dimension replicate
|
|
|
|
syn keyword lammpsParticle pair_coeff pair_style pair_modify pair_write mass velocity angle_coeff angle_style
|
|
|
|
syn keyword lammpsParticle atom_modify atom_style bond_coeff bond_style bond_write create_bonds delete_bonds kspace_style
|
2012-06-19 23:32:37 +08:00
|
|
|
syn keyword lammpsParticle kspace_modify dihedral_style dihedral_coeff improper_style improper_coeff
|
2019-06-11 23:15:04 +08:00
|
|
|
syn keyword lammpsSetup min_style fix_modify run_style timestep neighbor neigh_modify fix unfix suffix special_bonds
|
|
|
|
syn keyword lammpsSetup balance box clear comm_modify comm_style newton package processors reset_ids reset_timestep
|
|
|
|
syn keyword lammpsRun minimize run rerun tad neb prd quit server temper temper/grem temper/npt
|
|
|
|
syn keyword lammpsRun min/spin message hyper dynamical_matrix
|
|
|
|
syn keyword lammpsDefine variable group compute python set uncompute kim_query
|
2008-01-04 23:22:54 +08:00
|
|
|
|
2012-06-19 23:32:37 +08:00
|
|
|
syn keyword lammpsRepeat jump next loop
|
2008-01-04 23:22:54 +08:00
|
|
|
|
2019-06-11 23:15:04 +08:00
|
|
|
syn keyword lammpsOperator equal add sub mult div
|
2008-01-04 23:22:54 +08:00
|
|
|
|
2012-06-19 23:32:37 +08:00
|
|
|
syn keyword lammpsConditional if then elif else
|
2010-11-24 22:16:39 +08:00
|
|
|
|
2012-06-19 23:32:37 +08:00
|
|
|
syn keyword lammpsSpecial EDGE NULL &
|
2008-01-04 23:22:54 +08:00
|
|
|
|
2012-06-19 23:32:37 +08:00
|
|
|
syn region lammpsString start=+'+ end=+'+ oneline
|
|
|
|
syn region lammpsString start=+"+ end=+"+ oneline
|
2008-01-04 23:22:54 +08:00
|
|
|
|
2012-06-19 23:32:37 +08:00
|
|
|
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]\=\>"
|
2008-01-04 23:22:54 +08:00
|
|
|
|
2012-06-19 23:32:37 +08:00
|
|
|
syn match lammpsComment "#\(.*&\s*\n\)*.*$"
|
2008-01-04 23:22:54 +08:00
|
|
|
|
2012-06-19 23:32:37 +08:00
|
|
|
syn match lammpsVariable "\$\({[a-zA-Z0-9_]\+}\)"
|
|
|
|
syn match lammpsVariable "\$[A-Za-z]"
|
2008-01-04 23:22:54 +08:00
|
|
|
|
|
|
|
if !exists("did_lammps_syntax_inits")
|
|
|
|
let did_lammps_syntax_inits = 1
|
2012-06-19 23:32:37 +08:00
|
|
|
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
|
2008-01-04 23:22:54 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
let b:current_syntax = "lammps"
|