Skip to content

Commit

Permalink
Add support for GN
Browse files Browse the repository at this point in the history
GN is a build system used by Chromium and some other projects:
https://gn.googlesource.com/gn/

It uses # for comments:
https://gn.googlesource.com/gn/+/main/docs/reference.md#white-space-and-comments
  • Loading branch information
mk12 committed Sep 22, 2022
1 parent 6a27098 commit 24c75b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ See also [https://github.com/stkb/vscode-rewrap/releases](https://github.com/stk

---

### Unreleased

- Add GN language (#342)


### 1.16.3

Expand Down
1 change: 1 addition & 0 deletions core/Parsing.Documents.fs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ let mutable languages = [
]
)
lang "Git commit" "git-commit" "tag_editmsg" <| docOf markdown
lang "GN" "" ".gn|.gni" <| configFile
lang "GraphQL" "" ".graphql|.gql" <| sc [line "#"; block (@".*?""""""", "\"\"\"")]
lang "Groovy" "" ".groovy"
java
Expand Down

0 comments on commit 24c75b0

Please sign in to comment.