Conversation
|
Thanks for your contribution! Could you run It would be great if you could also add a demo file for the new highlight rules, for example like done here for another language mode: https://github.com/ajaxorg/ace/pull/5823/changes#diff-c9d95c1c8bffb5c1e3e9e484278e10902e7dd4d3c481a94a8981169d11dfa22b. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
ace-modes.d.ts updated and added socumentation file |
Since MariaDB forked from MySQL it got many changes in SQL syntax, so I decided to add separate highlighting model.
This pull request introduces support for MariaDB syntax highlighting in the project. The main changes add a new mode for MariaDB, define its syntax highlighting rules, and integrate it into the list of supported modes.
MariaDB mode support:
src/mode/mariadb.js, which defines the newMariadbmode, including comment syntax and inheritance fromTextMode.src/mode/mariadb_highlight_rules.js, which implements detailed syntax highlighting rules for MariaDB, including keywords, built-in functions, data types, numeric formats, string handling, and comment parsing.Integration:
src/ext/modelist.jsto includeMariadbin thesupportedModesmapping, enabling selection and use of the new mode.Issue #, if available:Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Pull Request Checklist:
ace.d.ts) and its references:Open kitchen-sink @ ccd7ef9a8416f06be7a5575e3c22f6f0fdee262d
Open kitchen-sink @ ac556d0e5260db23aad7baf76d36f84370a836ab
Open kitchen-sink @ cb680f50628745e3e05d96a8b4a59d57dac2fc72
Open kitchen-sink @ b3821c19c731f6852db1bc7d37a5c9d20351d699