Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HACKING with up-to-date build instructions #3586

Merged
merged 1 commit into from Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions HACKING
Expand Up @@ -522,7 +522,7 @@ printf("Prefix: %s", GEANY_PREFIX);

Adding a source file foo.[hc] in src/ or plugins/
-------------------------------------------------
* Add foo.c, foo.h to SRCS in path/Makefile.am.
* Add foo.c, foo.h to SRCS in path/Makefile.am and meson.build.
* Add path/foo.c to po/POTFILES.in (for string translation).

Adding a filetype
Expand Down Expand Up @@ -582,10 +582,12 @@ LexFoo.cxx. Try the official Scintilla project first.
Scintilla. All new lexers should be submitted back to the Scintilla
project to save duplication of work.

When adding a lexer, update:
When adding a lexer:

* scintilla/Makefile.am
* scintilla/src/Catalogue.cxx - add a LINK_LEXER command *manually*
* add LexFoo.cxx to scintilla/lexilla/lexers
* add `&lmFoo` to scintilla/lexilla/src/Lexilla.cxx and
scintilla/scintilla_changes.patch
* update scintilla/Makefile.am and meson.build

For syntax highlighting, you will need to edit highlighting.c and
highlightingmappings.h and add the following things:
Expand Down Expand Up @@ -656,7 +658,7 @@ https://github.com/universal-ctags/ctags

Method
``````
* Add foo.c to SRCS in Makefile.am.
* Add foo.c to SRCS in Makefile.am and meson.build.
* Add Foo to src/tagmanager/tm_parsers.h
* Add TM_PARSER_FOO to src/tagmanager/tm_parser.h. The list here must follow
exactly the order in src/tagmanager/tm_parsers.h.
Expand Down Expand Up @@ -705,8 +707,8 @@ This file contains the tag information expected to be generated from
the corresponding source file together with its human-readable form.

When you have these two files, you have to list your new test along the
other ones in the ``test_source`` variable in ``tests/ctags/Makefile.am``.
Please keep this list sorted alphabetically.
other ones in the ``test_source`` variable in ``tests/ctags/Makefile.am``
and ``tests/meson.build``. Please keep this list sorted alphabetically.

Upgrading Scintilla
-------------------
Expand Down