AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

tmLanguage syntax definition for ChatScript
 
 

Hello there!

While working on our own bot, we developed a CS syntax definition to make coding a bit easier in Sublime Text.

We have decided to open it up so others can use it, and hopefully help us make it better. There is still some obvious issues, but it works well for the most part. Feel free to download and install.

If you see something that needs fixing or that you want to fix, please open up a request on github.

Best!

https://github.com/joshuasnowball/chatscript-tmlanguage

 

 
  [ # 1 ]

That’s extremely sweet! Just what I needed!

Thanks!

 

 
  [ # 2 ]

Good news everyone:

I merged this syntax definition into the main channel of Sublime Text Package Control. This means that you can now install this package like you would any other in Sublime Text! It makes the process a lot easier and most importantly, you will automatically get updates. I added and corrected a bunch of stuff in the last few days, so you should check it out.

So if you installed the definition before, I would suggest removing the Chatscript.tmlangage* files from:
  Windows: %APPDATA%\Sublime Text
  OSX: ~/Library/Application Support/Sublime Text
  Linux: ~/.config/sublime-text

Then install Package Control, and then install the Chatscript syntax package. The instruction are in the repo’s readme if you’re not sure how to do that.

Eventually, I plan on making it available for Atom and TextMate and would be willing to port it to other editors too, if there is interest. I also think it would be great to incorporate code completion as well. Alas, time is limited…Fork the repo if you want to help! Cheers

 

 
  [ # 3 ]

Just a bump in this topic to let you know that I have updated the syntax for CS6.5 and ported it to Atom as well:

https://github.com/kuzyn/chatscript-tmlanguage

As a plus, the Sublime Text version now also support line and block comment toggling. Enjoy!

 

 
  [ # 4 ]

Shameless bump since I’ve updated the syntax quite a bit: you can now get it for Visual Code Studio as well as Sublime and Atom

https://github.com/kuzyn/chatscript-tmlanguage

## [v1.2.1] - 2017-02-17
* Fix trailing spaces after operators
* Check word anchor after constant when matching (#37)
* Case insensitive system functions & variables matching (#40)
* Support negative integers (#42)
* Small bug fixes #39 #43 #44

## [v1.2.0] - 2017-02-13
* Support for ChatScript 7.2
* Bugfixes #24 #25 #30 #26 #27 #29 #32
* Support for conditional compiling blocks
* Better multiline string support
* Miscellaneous fixes & improvements in regex match rules

 

 
  [ # 5 ]

Thanks Samuel

**bows**

I’ll check it out and come back with suggestions or bugs.

 

 
  login or register to react
‹‹ No Such Bot      synonyms ››