I just discovered the Falcon programming language today and would like to experiment with it a bit. As it is quite new, there is no ide. That's not a problem as I can use Vim. It would be helpful if there were a Vim syntax file for Falcon, but I can't seem to find one. Can someone point me to a Vim syntax file for Falcon? If not, I could really use a thorough tutorial to creating my own syntax files for Vim. I'm on Windows, and a very basic Vim user, so something step-by-step which is specific to that OS would be greatly appreciated. Thanks!
我今天刚刚发现了Falcon编程语言,并希望对它进行一些实验。因为它很新,所以没有想法。这不是问题,因为我可以使用Vim。如果Falcon有一个Vim语法文件会有所帮助,但我似乎无法找到它。有人能指出我为Falcon的Vim语法文件吗?如果没有,我真的可以使用全面的教程为Vim创建自己的语法文件。我在Windows上,并且是一个非常基本的Vim用户,因此非常感谢特定于该操作系统的一步一步。谢谢!
4 个解决方案
#1
Check out:
svn://falconpl.org/falcon/docs/trunk/SyntaxHilight
It's a bit outdated, but should be workable.
它有点过时,但应该可行。
#2
There doesn't seem to be one, as far as I can see (and google). You could try writing one, but be warned, it's not that simple as it may sound. Sure, it's not that much of a problem if you only want to highlight syntax keywords, but going into regexing something (and only that something) can get a bit difficult.
据我所知,似乎没有一个(和谷歌)。你可以尝试写一个,但要注意,它听起来并不那么简单。当然,如果您只想突出显示语法关键字,那么问题就不是那么大了,但是进入某些东西(只有那些东西)会变得有点困难。
I'm not familiar with that language, but try finding a syntax file from a language which is relatively similar to it, at least by "structure", and start by modifying it.
我不熟悉那种语言,但尝试从与其相似的语言中找到语法文件,至少通过“结构”,并从修改它开始。
For regex references, apart from vim's help I'd reccomend "beggining regular expressions" and "regular expression pocket ref." (it has a nice comparison feature, which includes vim's regex as well).
对于正则表达式引用,除了vim的帮助之外,我还建议使用“正则表达式”和“正则表达式口袋引用”。 (它有一个很好的比较功能,其中包括vim的正则表达式)。
#3
Check the Vim documentation, it has an entire section about syntax highlighting files and how to write your own custom syntax files.
查看Vim文档,它包含有关语法高亮文件以及如何编写自己的自定义语法文件的完整部分。
#4
Steve Oliver wrote a VIM syntax file for Falcon. It's located here: http://www.vim.org/scripts/script.php?script_id=2745
Steve Oliver为Falcon编写了一个VIM语法文件。它位于:http://www.vim.org/scripts/script.php?script_id = 2745
#1
Check out:
svn://falconpl.org/falcon/docs/trunk/SyntaxHilight
It's a bit outdated, but should be workable.
它有点过时,但应该可行。
#2
There doesn't seem to be one, as far as I can see (and google). You could try writing one, but be warned, it's not that simple as it may sound. Sure, it's not that much of a problem if you only want to highlight syntax keywords, but going into regexing something (and only that something) can get a bit difficult.
据我所知,似乎没有一个(和谷歌)。你可以尝试写一个,但要注意,它听起来并不那么简单。当然,如果您只想突出显示语法关键字,那么问题就不是那么大了,但是进入某些东西(只有那些东西)会变得有点困难。
I'm not familiar with that language, but try finding a syntax file from a language which is relatively similar to it, at least by "structure", and start by modifying it.
我不熟悉那种语言,但尝试从与其相似的语言中找到语法文件,至少通过“结构”,并从修改它开始。
For regex references, apart from vim's help I'd reccomend "beggining regular expressions" and "regular expression pocket ref." (it has a nice comparison feature, which includes vim's regex as well).
对于正则表达式引用,除了vim的帮助之外,我还建议使用“正则表达式”和“正则表达式口袋引用”。 (它有一个很好的比较功能,其中包括vim的正则表达式)。
#3
Check the Vim documentation, it has an entire section about syntax highlighting files and how to write your own custom syntax files.
查看Vim文档,它包含有关语法高亮文件以及如何编写自己的自定义语法文件的完整部分。
#4
Steve Oliver wrote a VIM syntax file for Falcon. It's located here: http://www.vim.org/scripts/script.php?script_id=2745
Steve Oliver为Falcon编写了一个VIM语法文件。它位于:http://www.vim.org/scripts/script.php?script_id = 2745