Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 0ac611f

Browse files
committed
Merge branch '4320_syntax_location'
* 4320_syntax_location: Ticket #4320: syntax/Syntax: document location of syntax files.
2 parents 2df6771 + cea7d35 commit 0ac611f

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ lib/vfs/Makefile
680680
lib/widget/Makefile
681681
682682
misc/syntax/Makefile
683-
misc/syntax/Syntax
684683
685684
doc/Makefile
686685
@@ -706,6 +705,11 @@ doc/hlp/sr/Makefile
706705
po/Makefile.in
707706
])
708707

708+
dnl https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable/30932102#30932102
709+
AC_CONFIG_FILES(
710+
[misc/syntax/Syntax], [sed -i -e "s%\${prefix}%$PREFIX%" misc/syntax/Syntax], [export PREFIX=$prefix]
711+
)
712+
709713
AC_CONFIG_FILES([
710714
tests/Makefile
711715
tests/lib/Makefile

misc/syntax/Syntax.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# This file describes which highlighting scheme is applied to a particular
22
# file in mcedit.
33
#
4+
#
5+
# System-wide files (this and syntax definitions) are located in
6+
# @datarootdir@/@PACKAGE@/syntax/ directory.
7+
#
8+
# User's files (this and syntax definitions) are located in
9+
# ~/.local/share/@PACKAGE@/syntax directory.
10+
#
11+
# If user's file is missing, system-wide one is used.
12+
#
13+
#
14+
# This file is rescanned on opening of every new editor file.
15+
#
16+
# Format of this file is following.
17+
#
418
# Each entry consists of two lines: a "file" specification and the
519
# corresponding highlighting definition ("include"). A file specification
620
# can have two or three fields, each separated by white-space characters.

0 commit comments

Comments
 (0)