Coder Social home page Coder Social logo

vscode-kamailio-syntax's Introduction

VSCode Extension - Kamailio Syntax Highlighting

This Visual Studio Code (VSCode) extension provides syntax highlighting for editing Kamailio SIP Server configuration files.

More details about Kamailio SIP Server project can be found at:

The code for this extension is hosted at:

Features

Syntax highlighting for:

  • line comments
  • block comments
  • preprocessor directive
  • routing block names
  • variables, indexes and transformations
  • string and integer values
  • reserved keywords

A screenshot while editing the kamailio.cfg file with this extension enabled:

Usage Example

Installation

The extension is published on VSCode Marketplace at:

To install it from the marketplace, launch VS Code Quick Open (Cmd+P or โŒ˜+P), paste the following command, and press enter.

ext install kamailio-syntax

To install from Git repository, clone it to your account VSCode folder (on MacOS or Linux, that is ~/.vscode/extensions):

cd ~/.vscode/extensions
git clone https://github.com/miconda/vscode-kamailio-syntax

The extension needs to be enabled from VSCode preferences.

Tested on MacOS, Linux, Windows (10)

Release Notes

1.0.8 (2020-12-01)

  • added name to control keywords list
  • added defenv to defines list
  • added all file type line
  • catch empty comment line started with #
  • match variables with index and transformations
  • the index and transformations are highlighted separately
  • split conditionals from keywords
  • highlight control functions in own group

For release notes of older versions, see CHANGELOG.md file.

Enjoy!

vscode-kamailio-syntax's People

Contributors

miconda avatar skrusty avatar werebear73 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

vscode-kamailio-syntax's Issues

# when not a comment

This is another # symbol as part of a regular expression issue being interpreted as comment when it shouldn't be.

Example:
$tU = $(tU{re.subst,/$avp(techprefix)[#*]//});

Everything after the # symbol is interpreted as a comment.

Daniel,

I will work to fix this soon. Just wanted to put the issue in, in case, anyone else was having this issue and as a reminder that I need to come back and fix this like the other one.

Sam

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.