Skip to content

Commit

Permalink
Add Xmake language
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 12, 2025
1 parent 09880c7 commit 9d14237
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,9 @@
[submodule "vendor/grammars/xc.tmbundle"]
path = vendor/grammars/xc.tmbundle
url = https://github.com/graymalkin/xc.tmbundle
[submodule "vendor/grammars/xmake-lua.tmbundle"]
path = vendor/grammars/xmake-lua.tmbundle
url = https://github.com/xmake-io/xmake-lua.tmbundle
[submodule "vendor/grammars/xml.tmbundle"]
path = vendor/grammars/xml.tmbundle
url = https://github.com/textmate/xml.tmbundle
Expand Down
2 changes: 2 additions & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,8 @@ vendor/grammars/wollok-sublime:
- source.wollok
vendor/grammars/xc.tmbundle:
- source.xc
vendor/grammars/xmake-lua.tmbundle:
- source.xmake
vendor/grammars/xml.tmbundle:
- text.xml
- text.xml.xsl
Expand Down
9 changes: 9 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8798,3 +8798,12 @@ xBase:
tm_scope: source.harbour
ace_mode: text
language_id: 421
Xmake:
type: programming
color: "#22a079"
filenames:
- xmake.lua
tm_scope: source.xmake
ace_mode: text
language_id: 422

20 changes: 20 additions & 0 deletions samples/Xmake/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set_project("sample")
set_version("1.0.0")

add_rules("mode.debug", "mode.release")

option("test", {default = false, description = "the test option"})

add_requires("zlib", {system = false})

target("test")
set_kind("binary")
add_files("src/*.c")
add_packages("zlib")
if is_plat("windows") then
add_defines("WIN32")
end
if has_config("test") then
add_defines("TEST")
end

1 change: 1 addition & 0 deletions vendor/grammars/xmake-lua.tmbundle
Submodule xmake-lua.tmbundle added at 2e8dfc
31 changes: 31 additions & 0 deletions vendor/licenses/git_submodule/xmake-lua.tmbundle.dep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: xmake-lua.tmbundle
version: 2e8dfc454ed0f6aef121cfd6fe2be6812eeb6427
type: git_submodule
homepage: https://github.com/xmake-io/xmake-lua.tmbundle
license: mit
licenses:
- sources: LICENSE
text: |
MIT License
Copyright (c) 2022 最萌小汐
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includinR without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
notices: []

0 comments on commit 9d14237

Please sign in to comment.