I am trying to write a VIM highlight file for Gaussian 09 inputs. One example of "control" line is shown below:
# P TPSSTPSS 6-31G* DENSITYFIT OPT(VERYTIGHT) INT(ULTRAFINE) FREQ(NORAMAN) TITLE LINE, NOT CONTROL LINE, SO OPT HERE SHOULD NOT HIGHLIGHT
The point is, if a
# mark is found at the beginning of the line, then the following lines are concatenated until an empty line is found, and the words are considered as keywords, e.g.
OPT is a keyword in the second row, however it is no longer a keyword in the fifth row.
How do I let the
syntax command in VIM know it needs to join them, and restrict the keywords inside it?