2 * SXED -- sexy text editor engine, 2022
4 * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
5 * Understanding is not required. Only obedience.
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, version 3 of the License ONLY.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 // spaces between `=` are NOT optional!
23 default-style = c-default
24 code-block-chars = !empty!
25 // bracket-chars = !empty!
26 // this resets word jump chars
27 word-chars = !non-blank!
28 // setup word jump chars again
29 word-jump-chars = !default!
38 keyword type @separate @any-end {
154 /[-!%&()*+,\/:<=>?\[\]^{|}~.]/
159 // to make semicolons more visible
167 comment single-line start @auto-start @any-end {
174 comment single-line end {
179 comment single-line parens start @auto-start @word-end {
183 comment single-line parens end {
187 comment multiline start @any-start @any-end {
191 comment multiline end {
195 /* this is nested. sigh. */
196 comment multiline nested start @any-start @any-end {
200 comment multiline nested end {
204 #include "inc/comment_escapes.sxi"
216 /0[xX][0-9A-Fa-f][0-9A-Fa-f_]*/
220 // this conflicts with decimal for some reason
226 string rq start @any-start @word-end {
230 string rq end @any-start @any-end {
235 string dq start @any-start @any-end {
236 /["][\x01-\x09\x0b-\x20]/
238 /[$]vocabheader\s+["]/
241 string dq end @any-start @any-end {
245 // we need "@any", because match ends with a word char
246 string dq escape @any-start @any-end {