summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Brauns <armin.brauns@embedded-solutions.at>2024-01-08 15:30:26 +0000
committerArmin Brauns <armin.brauns@embedded-solutions.at>2024-01-08 15:31:42 +0000
commit1087c805d01ba542b855ac52235d06f7e707aa5c (patch)
tree9c23c6d1113b7174969fb566eec67d25f4349848
parent2d61aefb84d243c06b8d7de47f08ddbc694840f3 (diff)
manual: fix instructions for adding new parser
The `LANG_*` lists were removed and replaced with functions in 4d85b5c15e60e5cfc396a35b3686df4d7210a925.
-rw-r--r--manual/src/adding_a_parser.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/src/adding_a_parser.md b/manual/src/adding_a_parser.md
index b1fdac2f6..6ff46b301 100644
--- a/manual/src/adding_a_parser.md
+++ b/manual/src/adding_a_parser.md
@@ -97,8 +97,8 @@ Json => "json",
```
There may also file names or shebangs associated with your language; configure those
-by adapting the `LANG_FILE_NAMES` constant and the `from_shebang` method in that file, respectively.
-Add any file extensions associated to your language to the `LANG_EXTENSIONS` constant.
+by adapting the `language_globs`, `from_emacs_mode_header` and `from_shebang` functions
+in that file.
[GitHub's linguist definitions](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)
are a useful source of common file extensions.