Skip to content

Commit

Permalink
Add 4DProject and 4DForm extensions to JSON (#4802)
Browse files Browse the repository at this point in the history
* Update languages.yml

I would like to add, to complete the 4D programming language, specific extensions, linked to JSON & XML, for the other files used into 4D projects repositories.
Samples into this repository: https://github.com/vdelachaux/4DPop

- JSON
".4DProject": https://github.com/vdelachaux/4DPop/blob/master/Project/4DPop.4DProject
".4DForm": https://github.com/vdelachaux/4DPop/blob/master/Project/Sources/Forms/ASSISTANT/form.4DForm

- XML
.4DCatalog: https://github.com/vdelachaux/4DPop/blob/master/Project/Sources/catalog.4DCatalog
.4DSettings: https://github.com/vdelachaux/4DPop/blob/master/Project/Sources/settings.4DSettings

* Remove 4DCatalog and 4DSettings from XML

This isn't needed as the files are correctly detected as XML already

* Add samples

Source: https://github.com/vdelachaux/4DPop-Git
License: MIT

* Replace with smaller sample

Source: https://github.com/4D-JP/4d-test-read-only-fields/blob/b54a3ce77eefd1e825356b0fdad70b18baf6ed1c/read-only-fields.4dbase/Project/Sources/TableForms/1/Input/form.4DForm
License: MIT

Co-authored-by: Colin Seymour <colin@github.com>
Co-authored-by: Colin Seymour <colin@symr.io>
  • Loading branch information
3 people committed Jun 8, 2022
1 parent 2e1c938 commit c70d6ce
Show file tree
Hide file tree
Showing 3 changed files with 543 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2887,6 +2887,8 @@ JSON:
- topojson
extensions:
- ".json"
- ".4DForm"
- ".4DProject"
- ".avsc"
- ".geojson"
- ".gltf"
Expand Down
3 changes: 3 additions & 0 deletions samples/JSON/4DPopGit.4DProject
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"$comment": "The project file let you override the location for most folders"
}
Loading

0 comments on commit c70d6ce

Please sign in to comment.