Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8e48edad
Kaydet (Commit)
8e48edad
authored
Eki 22, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor clean-up
Change-Id: I48280cf6e12a5219adaa34f57323a93d21c3f554
üst
93e652d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
syntaxhighlight.cxx
comphelper/source/misc/syntaxhighlight.cxx
+3
-7
syntaxhighlight.hxx
include/comphelper/syntaxhighlight.hxx
+5
-0
No files found.
comphelper/source/misc/syntaxhighlight.cxx
Dosyayı görüntüle @
8e48edad
...
...
@@ -676,13 +676,9 @@ void SimpleTokenizer_Impl::getHighlightPortions( sal_uInt32 nParseLine, const OU
// Loop over all the tokens
while
(
getNextToken
(
eType
,
pStartPos
,
pEndPos
)
)
{
HighlightPortion
portion
;
portion
.
nBegin
=
pStartPos
-
mpStringBegin
;
portion
.
nEnd
=
pEndPos
-
mpStringBegin
;
portion
.
tokenType
=
eType
;
portions
.
push_back
(
portion
);
portions
.
push_back
(
HighlightPortion
(
pStartPos
-
mpStringBegin
,
pEndPos
-
mpStringBegin
,
eType
));
}
}
...
...
include/comphelper/syntaxhighlight.hxx
Dosyayı görüntüle @
8e48edad
...
...
@@ -48,6 +48,11 @@ struct HighlightPortion {
sal_Int32
nBegin
;
sal_Int32
nEnd
;
TokenTypes
tokenType
;
HighlightPortion
(
sal_Int32
theBegin
,
sal_Int32
theEnd
,
TokenTypes
theTokenType
)
:
nBegin
(
theBegin
),
nEnd
(
theEnd
),
tokenType
(
theTokenType
)
{}
};
/////////////////////////////////////////////////////////////////////////
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment