Re: Property settings for individual files

"'Neil Hodgson' via scite-interest" <[email protected]>
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
   An initial commit adds file path properties (FilePath, FileDir, FileName, FileExt, FileNameExt) to the directories property set so they can be tested inside directory and local properties files. This change may cause problems for other features so look out for regressions and report them.

   This feature allows per-file and per-extension settings like:

if $(= $(FileNameExt);RegenerateSource.py)
	style.python.5=fore:#D08000,bold

# Perl code in retro mode using punched cards
if $(= $(FileExt);pl)
	edge.mode=1
	edge.column=77
	edge.colour=#F0C000

   For Lexilla, this works for FileNameExt only in TestLexers.

   A shorter syntax may be implemented in the future.

   While I like the ‘match’ keyword, the [bracketed] matcher also suggests a single line form when only setting a single property:

lexer.markdown.header.eolfill[AllStyles.md]=1
edge.column[*.{cobol,fortran}]=80

   Some minor updates were made to SciTE EditorConfig pattern matching code to implement numeric ranges like {10..25} https://editorconfig-specification.readthedocs.io/#glob-expressions. This pattern matcher may be reused for the ‘match’ keyword.

   Changes available from the repositories
git clone https://github.com/ScintillaOrg/lexilla
hg clone http://hg.code.sf.net/p/scintilla/scite
   or from
https://www.scintilla.org/scite.zip  Source
https://www.scintilla.org/wscite.zip Windows executable (64-bit)

   Neil

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/A084AA18-6E83-484D-ABFA-622DB0C9CE6A%40me.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.