Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Avoid spurious comment highlighting #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions after/syntax/robot.vim
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ syn match builtInLibrary "\c\<\(Wait Until Keyword Succeeds\|Variable
"------------------------------------------------------------------------
" Regions
"------------------------------------------------------------------------
" Single-line comments. Are there multi-line comments?
syn region robotComment display start="#" excludenl end="$"
" Comments are defined as: "All characters following the hash character (#),
" when it is the first character of a cell". The start of a cell is either the
" first non-whitespace content on a line or delimited either by two spaces or
" a tab character.
syn region robotComment display start="\(^\| \|\t\)[ \t]*#" excludenl end="$"
syn region robotString start="\"" excludenl end="\""

"------------------------------------------------------------------------
Expand Down