Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.59 KB

File metadata and controls

53 lines (34 loc) · 1.59 KB

C2 Mode

MELPA

c2-mode -- major mode for editing code written in the C2 Programming Language.

c2-mode supports:

  • syntax highlighting;
  • proper indentations;
  • autoload for *.c2, *.c2i, *.c2t files.

c2-mode doesn't support:

  • correctness checking;
  • tooltips and auto completion.

Customization

You can set the width of the indentation by setting the customizable user option variable c2-indent-offset from customization group c2. By default, it is set to 2.

Details

c2-mode based on cc-mode for proper syntax highlighting and indentations.

When creating the mode, the C2 documentation and sources was used.

The correctness of the highlighting and indentations was manually checked on various C2 files including of C2 compiler and examples sources.

Known issues

  • Incorrect highlighting for comments, attributes and directives.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

(c) 2025 Evgeny Simonenko