I have been trying to create syntax highlighting got my programming language Floral. Here is the yaml file I created:
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: Floral
file_extensions:
- floral
- fh
scope: source.floral
contexts:
main:
- match: \b(global|var|let|struct|enum|behavior|if|else|for|while|func|try|catch|return)
scope: keyword.control.c
- match: '"'
push: string
string:
- meta_scope: string.quoted.double.c
- match: \\.
scope: constant.character.escape.c
- match: '"'
pop: true
However, even after quitting Sublime Text, I failed to see the syntax in View > Syntax. I opened console and saw that it simply said this:
generating syntax summary
It’s been stuck on this for 30 minutes now…