diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index bb62937517..8eed5ab111 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -6006,6 +6006,16 @@ Pug: codemirror_mode: pug codemirror_mime_type: text/x-pug language_id: 179 +Premake: + type: programming + tm_scope: source.lua + ace_mode: lua + codemirror_mode: lua + codemirror_mime_type: text/x-lua + color: "#e67e22" + filenames: + - premake5.lua + language_id: 716734903 Puppet: type: programming color: "#302B6D" diff --git a/samples/Premake/premake5.lua b/samples/Premake/premake5.lua new file mode 100644 index 0000000000..0d86d72e77 --- /dev/null +++ b/samples/Premake/premake5.lua @@ -0,0 +1,79 @@ +-- Sample: premake5.lua +-- Source: https://github.com/TheCherno/glfw/blob/9bed794ab7c1b961aaca259403695bbd3870d3b3/premake5.lua +-- License: https://github.com/glfw/glfw/blob/master/LICENSE.md (zlib) + + +project "GLFW" + kind "StaticLib" + language "C" + + targetdir ("bin/" .. outputdir .. "/%{prj.name}") + objdir ("bin-int/" .. outputdir .. "/%{prj.name}") + + files + { + "include/GLFW/glfw3.h", + "include/GLFW/glfw3native.h", + "src/glfw_config.h", + "src/context.c", + "src/init.c", + "src/input.c", + "src/monitor.c", + "src/vulkan.c", + "src/window.c" + } + filter "system:linux" + pic "On" + + systemversion "latest" + staticruntime "On" + + files + { + "src/x11_init.c", + "src/x11_monitor.c", + "src/x11_window.c", + "src/xkb_unicode.c", + "src/posix_time.c", + "src/posix_thread.c", + "src/glx_context.c", + "src/egl_context.c", + "src/osmesa_context.c", + "src/linux_joystick.c" + } + + defines + { + "_GLFW_X11" + } + + filter "system:windows" + systemversion "latest" + staticruntime "On" + + files + { + "src/win32_init.c", + "src/win32_joystick.c", + "src/win32_monitor.c", + "src/win32_time.c", + "src/win32_thread.c", + "src/win32_window.c", + "src/wgl_context.c", + "src/egl_context.c", + "src/osmesa_context.c" + } + + defines + { + "_GLFW_WIN32", + "_CRT_SECURE_NO_WARNINGS" + } + + filter "configurations:Debug" + runtime "Debug" + symbols "on" + + filter "configurations:Release" + runtime "Release" + optimize "on" diff --git a/vendor/README.md b/vendor/README.md index aed1bdd5b2..25c31ec2b4 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -482,6 +482,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting - **PowerBuilder:** [informaticon/PowerBuilder.tmbundle](https://github.com/informaticon/PowerBuilder.tmbundle) - **PowerShell:** [PowerShell/EditorSyntax](https://github.com/PowerShell/EditorSyntax) - **Praat:** [orhunulusahin/praatvscode](https://github.com/orhunulusahin/praatvscode) +- **Premake:** [LuaLS/lua.tmbundle](https://github.com/LuaLS/lua.tmbundle) - **Prisma:** [prisma/vscode-prisma](https://github.com/prisma/vscode-prisma) - **Processing:** [textmate/processing.tmbundle](https://github.com/textmate/processing.tmbundle) - **Procfile:** [benspaulding/vscode-procfile](https://github.com/benspaulding/vscode-procfile)