-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for arcanist config file extensions
Those are used by (Phabricator/Phorge)'s arcanist CLI tools. - `.arcconfig`: [docs](https://we.phorge.it/book/phorge/article/arcanist_new_project/) - `.arclint` and `.arcunit`: [docs](https://we.phorge.it/book/phorge/article/arcanist_lint_unit/) says "inside `.arcconfig`" but apparently (according to upstream repo) `.arclint` and `.arcunit` is supported as well. Signed-off-by: Yongmin Hong <[email protected]>
- Loading branch information
Showing
3 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,3 +144,4 @@ Contributors | |
- Skyler Grey <[email protected]> | ||
- Emil Velikov <[email protected]> | ||
- Linnea Gräf <[email protected]> | ||
- Yongmin Hong <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Added `.arcconfig`, `.arclint`, `.arcunit` (all uncommentable) as recognized | ||
file types for comments. (#1123) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
# SPDX-FileCopyrightText: 2023 Shun Sakai <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Rivos Inc. | ||
# SPDX-FileCopyrightText: 2024 Anthony Loiseau <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Yongmin Hong <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
|
@@ -838,6 +839,9 @@ class XQueryCommentStyle(CommentStyle): | |
} | ||
|
||
FILENAME_COMMENT_STYLE_MAP = { | ||
".arcconfig": UncommentableCommentStyle, # is a JSON file | ||
".arclint": UncommentableCommentStyle, # is a JSON file | ||
".arcunit": UncommentableCommentStyle, # is a JSON file | ||
".bashrc": PythonCommentStyle, | ||
".bazelignore": PythonCommentStyle, | ||
".bazelrc": PythonCommentStyle, | ||
|