Skip to content

Tilde paths (~/…) should not be recognized as Org code #10

Description

@agguser

A fix would be not allowing / after ~ code marker:

diff --git a/syntax/org.vim b/syntax/org.vim
@@ -50 +50 @@ highlight def link orgTitle Title
-syntax region orgCode     matchgroup=orgCodeDelimiter     start="\(^\|[- '"({\]]\)\@<=\~\ze[^ ]" end="^\@!\~\([^\k\~]\|$\)\@=" keepend
+syntax region orgCode     matchgroup=orgCodeDelimiter     start="\(^\|[- '"({\]]\)\@<=\~\ze[^ /]" end="^\@!\~\([^\k\~]\|$\)\@=" keepend

Not sure if this should be done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions