Coder Social home page Coder Social logo

robotframework-vim's Introduction

Vim plugins for development with Robot framework

FUNCTIONALITY

  • {rtp}/after/syntax/robot.vim - Robot syntax plugin for text, space-delimited files.
  • {rtp}/ftdetect/robot.vim - Robot filetype recognition plugin for text, space-delimited files.

INSTALLATION

Quickly install by:

  • git clone git://github.com/mfukar/robotframework-vim.git
  • cd robotframework-vim && cp -R * ~/.vim/

USAGE

  • To enable syntax highlighting in vim, you may add this line at the beginning of a Robot Framework file(s):

    # -*- coding: robot -*-

  • Alternatively, set the g:robot_syntax_for_txt global variable to treat .txt files as Robot files.

  • Or to enable the syntax highlighting for just a specific file you can issue the following command from vim:

    :setf robot

robotframework-vim's People

Contributors

aswna avatar feiyuw avatar finspin avatar gnagno avatar gwilbur avatar horia-delicoti avatar jollychang avatar markhu avatar mfukar avatar ruipires avatar yanne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

robotframework-vim's Issues

trailing comments should be highlighted

Currently it seems that only comments with the # character in the first column are highlighted as comments.

Comments trailing a command, or on their own indented line are not:

 Set Test Message  %{PATH}  # tbd: explain "why"
 # log  something

I think they should be.

Highlighted predefined keywords are highlighted even if they are only a part of another keyword

Library is a robot setting that is highlighted by the syntax file. Now, if I have the word Library anywhere, it is highlighted even if it is not part of the setting. And this is applicable to other words highlighted by the library.

I checked the syntax files. Seems to me, the only way to fix this would be to update the regexes to do some kind of lookahead and lookbehind matching for a non-space character. Are there any other ways that this might be fixed?

I am not that familiar with vimscript.

One double quote highlights whole rest of file as string literal

Given this

${string}=  Replace String  ${string}  "  ${EMPTY}

(should be string.replace('"', '') in python) .. while it is perfectly valid robot framework syntax, the highlighter marks the rest of the file green (in my color scheme). Any idea how to fix that ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.