View Issue Details

IDProjectCategoryView StatusLast Update
0026285LazarusPackagespublic2015-01-25 01:28
ReporterAlexey Tor.Assigned ToMartin Friebe 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformWinOSOS Version
Product Version1.2.2Product Build 
Target Version1.6Fixed in Version1.5 (SVN) 
Summary0026285: SynCssSyn is wrong, needs some rework
DescriptionI know several good editors. For css. If editors hilite "symbols" then
symbols mean { } : ;

SynCssSyn hilites symbols wrong.
1a) not hilites { } as symbols-style but hilites { } as string-style
1b) not hilites : ; as symbols

Also
2) in line
    H3 {font-size: 14pt; font-family: arial 'name'}
"pt" hilited wrong, as key-style, as "font-size", but it's not needed, because "pt" is not key, it's unit specifier. Also unit specifiers: "px", "em". They not keys like "font-size", "font-family". Inside { } key-style MUST NOT be used





 
Steps To Reproduce/* Example css*/

BODY {background: #FFFFFF}
A:link {color: #80FF00}
A:visited {color: #FF00FF}
H3 {font-size: 14pt; font-family: arial 'name'}
Additional InformationAs examples see Notepad++, SynWrite
TagsNo tags attached.
Fixed in Revision47511
LazTarget1.6
Widgetset
Attached Files

Activities

Alexey Tor.

2014-06-06 01:16

reporter   ~0075494

Ops, i mean "inside { } key-style must be used only BEFORE : char, in each line separated with ; char"

Alexey Tor.

2014-06-06 01:48

reporter  

css1.css (221 bytes)

Alexey Tor.

2014-06-06 01:48

reporter  

css1.png (37,989 bytes)
css1.png (37,989 bytes)

Alexey Tor.

2014-06-06 01:49

reporter   ~0075495

Attached SAMPLE css and it's OK look (png).

Martin Friebe

2015-01-25 01:28

manager   ~0080565

The CSS HL is still very, very basic.

";" may be a symbol inside the declaration block, outside it is a selector (or part of it)

I made the following changes.

{} open/close declaration block. highlight a s symbol

:; inside decl-block => symbol

%,em,mm,pt,... new highlight measurement.

# as hex: now ONLY inside decl block

:*.>~# others: outside decl-block => selector (new HL)

Issue History

Date Modified Username Field Change
2014-06-06 01:08 Alexey Tor. New Issue
2014-06-06 01:16 Alexey Tor. Note Added: 0075494
2014-06-06 01:48 Alexey Tor. File Added: css1.css
2014-06-06 01:48 Alexey Tor. File Added: css1.png
2014-06-06 01:49 Alexey Tor. Note Added: 0075495
2014-06-06 13:22 Martin Friebe LazTarget => -
2014-06-06 13:22 Martin Friebe Assigned To => Martin Friebe
2014-06-06 13:22 Martin Friebe Status new => acknowledged
2015-01-25 01:28 Martin Friebe Fixed in Revision => 47511
2015-01-25 01:28 Martin Friebe LazTarget - => 1.6
2015-01-25 01:28 Martin Friebe Widgetset Win32/Win64 =>
2015-01-25 01:28 Martin Friebe Note Added: 0080565
2015-01-25 01:28 Martin Friebe Status acknowledged => resolved
2015-01-25 01:28 Martin Friebe Fixed in Version => 1.5 (SVN)
2015-01-25 01:28 Martin Friebe Resolution open => fixed
2015-01-25 01:28 Martin Friebe Target Version => 1.6