The language is based on Go. I created `filetypes.Foo.conf` and set 
`Foo=*.foo;` in `filetype_extensions.conf`. Foo is indeed appeared on `Set 
Filetype` but syntax highlighting for the language Foo is simply not work. When 
you opened a file name with extension `.foo`, it's treated as `None` and even 
if you manually set the language to be `Foo` via `Set Filetype`, there is 
absolutely no syntax highlighting. Strangely enough, if I set the language to 
`Go` via `Set Filetype` then I have syntax highlighting. If I edit 
`filetype_extensions.conf` to add `.foo` to the list of extensions of `Go` 
source file, then `.foo` files will be treated as `Go` and have syntax 
highlighting, too. Of course, this syntax highlighting is for Go and the 
keywords specific to the language `Foo` is not highlighted. I have read and 
followed the FAQ so I want to know what exactly did I do wrong or if I should 
make a bug report.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/3663
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/[email protected]>

Reply via email to