Replies: 6 comments
-
I think this is definitely a good idea. IMO it would be best to generate the syntax file from released versions of syslog-ng-cfg-helper. Pros
Cons
|
Beta Was this translation helpful? Give feedback.
-
Another thing is that I don't think that we can/should develop the vim syntax generating project under the syslog-ng namespace/organization. I don't know if the the admin of the https://github.com/syslog-ng organization would let us create a new project there. |
Beta Was this translation helpful? Give feedback.
-
Awesome @alltilla 😍 I started some proof-of-concept repo under my profile and am willing to transfer it to @syslog-ng if it succeeds to reach its goal: https://github.com/smortex/vim-syslog-ng. For the sake of simplicity, for now I just used a template and fill-in this template with the information from the .db file generated by I have noted a few inconsistencies with the current syntax where some keywords are not in the db file:
I kept these inconsistencies "as is" for now. |
Beta Was this translation helpful? Give feedback.
-
This looks really cool :) I can hopefully continue this week with:
Although I am not really familiar with Ruby, we can keep using it. The only thing that could be useful when using python is that I have classes implemented for the database, and we could use/extend those if we need more sophisticated traversal. But I can imagine that a simple one that you have written will take us to great lengths. |
Beta Was this translation helpful? Give feedback.
-
Nice! I sent you an invitation on the vim-syslog-ng project so that we can work together more easily. Feel free to open PR and ask me to add commits to update the Ruby code if that helps you! And indeed if it becomes tedious we will rewrite the generator! |
Beta Was this translation helpful? Give feedback.
-
The project is available at https://github.com/syslog-ng/vim-syslog-ng |
Beta Was this translation helpful? Give feedback.
-
Based on @smortex's idea: syslog-ng/syslog-ng#4475 (comment)
Beta Was this translation helpful? Give feedback.
All reactions