Skip to content

Add Vim syntax highlighting #1

Open

Description

@EmilyGraceSeville7cf

This question should be resolved to be able to do this.

Activity

  1. EmilyGraceSeville7cf commented on Jan 24, 2023

    @EmilyGraceSeville7cf
    MemberAuthor

    The following code doesn't work as expected:

    " Vim syntax file
    " Language: Better TlDr
    " Maintainer: Emily Grace Seville
    " Latest Revision: 23 January 2023
    
    if exists("b:current_syntax")
      finish
    endif
    
    let b:current_syntax = "btldr"
    
    syntax match linePrefix '^[-#>]'
    syntax match url 'https:[^ ]+'
    syntax match option '--?[^ =]+=?'
    
    syntax keyword placeholderType bool int float char string command file directory path any
    syntax keyword streamType stdin stdout stderr
    
    highlight def link linePrefix Type
    highlight def link url Constant
    highlight def link option Type
    
    highlight def link placeholderType Type
    highlight def link streamType Type

    image

    I don't know how to fix, I definitely need help with syntax highlighting for Vim.

  2. added
    help wanted
    on Jan 24, 2023
  3. removed their assignment
    on Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions