termux / termux-language-server

🛠️ A language server for some specific bash scripts
https://termux-language-server.readthedocs.io/
GNU General Public License v3.0
85 stars 8 forks source link

Add SPDX `LicenseRef-.*` for PKGBUILD's license #24

Open txtsd opened 2 weeks ago

txtsd commented 2 weeks ago

Which means SPDX license expressions, and LicenseRef-* for custom licenses, are possible.

Reference: https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/#composite-license-expressions https://spdx.org/licenses/exceptions-index.html

Freed-Wu commented 2 weeks ago

https://github.com/termux/termux-language-server/issues/19#issuecomment-2199886707

It should support SPDX. I heard LicenseRef-* firstly. Sounds like all string match LicenseRef-.* are legal?

txtsd commented 2 weeks ago

Correct!

txtsd commented 2 weeks ago

But also SPDX expressions like MIT OR GPL-3.0-or-later WITH GPL-3.0-linking-source-exception are valid.

EDIT: along with parentheses

Freed-Wu commented 2 weeks ago

SPDX expression looks a little complex. Now this project just use regex to match some legal string.