Files
tia-mason-registry/packages/tia-lsp/package.yaml
T
lazar f987b93f81 fix: replace heredoc with printf in build script
The heredoc inside the YAML block scalar (|) broke YAML parsing because
the heredoc body lines (#!/bin/bash, exec lua...) were at column 0,
which YAML interpreted as top-level keys. The ':' in the exec line
triggered 'could not find expected ':'' parse errors.

Replace with printf to keep the entire build script as properly-indented
YAML block scalar content. This also fixes the mason UI crash where the
newline-containing error message triggered 'replacement string item
contains newlines' in nvim_buf_set_lines.
2026-07-18 16:41:49 +02:00

24 lines
596 B
YAML

---
name: tia-lsp
description: Language server for Siemens TIA Portal languages (SCL, with planned STL/AWL, LAD, FBD support).
homepage: https://gitea.l-tech.rs/lazar/tia-lsp
licenses:
- MIT
languages:
- SCL
categories:
- LSP
source:
id: pkg:generic/tia-lsp@0.1.0
build:
run: |
git clone --depth 1 --branch v{{version}} https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src
cp -r tia-lsp-src/src ./src
mkdir -p bin
printf '#!/bin/bash\nexec lua "$(dirname "$0")/../src/main.lua" "$@"\n' > bin/tia-lsp
chmod +x bin/tia-lsp
bin:
tia-lsp: bin/tia-lsp