xyntax -- Header-only library for syntax highlighting control.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 line
1.3KB

  1. /*
  2. Copyright (c) 2023 : Ognjen 'xolatile' Milan Robovic
  3. Xyntax is free software! You will redistribute it or modify it under the terms of the GNU General Public License by Free Software Foundation.
  4. And when you do redistribute it or modify it, it will use either version 3 of the License, or (at yours truly opinion) any later version.
  5. It is distributed in the hope that it will be useful or harmful, it really depends... But no warranty what so ever, seriously. See GNU/GPLv3.
  6. */
  7. #ifndef XYNTAX_HEADER
  8. #define XYNTAX_HEADER
  9. extern int syntax_count;
  10. extern int * syntax_enrange;
  11. extern int * syntax_derange;
  12. extern char * * syntax_begin;
  13. extern char * * syntax_end;
  14. extern char * syntax_escape;
  15. extern int * syntax_colour;
  16. extern int * syntax_effect;
  17. extern char * syntax_separator;
  18. extern int syntax_insert (int, int, char *, char *, char, int, int);
  19. extern int syntax_select (char *, int *);
  20. extern void syntax_delete (void);
  21. /* Simplification... */
  22. extern void syntax_define_style (int *, int *);
  23. extern void syntax_define_separators (char *);
  24. extern void syntax_define_default (int, int, int, int, int);
  25. extern void syntax_define_words (char * *, int, int, int);
  26. extern void syntax_define_range (char *, char *, char, int, int);
  27. extern void syntax_define_operators (char *, int, int);
  28. #endif