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
e008580f
Kaydet (Commit)
e008580f
authored
Ara 13, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SbiTokenizer::Hilite unused
üst
2338a8c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
46 deletions
+0
-46
token.cxx
basic/source/comp/token.cxx
+0
-44
token.hxx
basic/source/inc/token.hxx
+0
-2
No files found.
basic/source/comp/token.cxx
Dosyayı görüntüle @
e008580f
...
@@ -505,48 +505,4 @@ sal_Bool SbiTokenizer::MayBeLabel( sal_Bool bNeedsColon )
...
@@ -505,48 +505,4 @@ sal_Bool SbiTokenizer::MayBeLabel( sal_Bool bNeedsColon )
#endif
#endif
void
SbiTokenizer
::
Hilite
(
SbTextPortions
&
rList
)
{
bErrors
=
sal_False
;
bUsedForHilite
=
sal_True
;
SbiToken
eLastTok
=
NIL
;
for
(
;;
)
{
Next
();
if
(
IsEof
()
)
break
;
SbTextPortion
aRes
;
aRes
.
nLine
=
nLine
;
aRes
.
nStart
=
nCol1
;
aRes
.
nEnd
=
nCol2
;
switch
(
eCurTok
)
{
case
REM
:
aRes
.
eType
=
SB_COMMENT
;
break
;
case
SYMBOL
:
aRes
.
eType
=
SB_SYMBOL
;
break
;
case
FIXSTRING
:
aRes
.
eType
=
SB_STRING
;
break
;
case
NUMBER
:
aRes
.
eType
=
SB_NUMBER
;
break
;
default
:
if
(
(
eCurTok
>=
FIRSTKWD
&&
eCurTok
<=
LASTKWD
)
||
(
eCurTok
>=
_CDECL_
)
)
aRes
.
eType
=
SB_KEYWORD
;
else
aRes
.
eType
=
SB_PUNCTUATION
;
}
// the sequence xxx.Keyword should not be flagged as Kwd
if
(
aRes
.
eType
==
SB_KEYWORD
&&
(
eLastTok
==
DOT
||
eLastTok
==
EXCLAM
)
)
aRes
.
eType
=
SB_SYMBOL
;
if
(
eCurTok
!=
EOLN
&&
aRes
.
nStart
<=
aRes
.
nEnd
)
rList
.
Insert
(
aRes
,
rList
.
Count
()
);
if
(
aRes
.
eType
==
SB_COMMENT
)
break
;
eLastTok
=
eCurTok
;
}
bUsedForHilite
=
sal_False
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
basic/source/inc/token.hxx
Dosyayı görüntüle @
e008580f
...
@@ -161,8 +161,6 @@ public:
...
@@ -161,8 +161,6 @@ public:
SbiToken
Next
();
// read a token
SbiToken
Next
();
// read a token
sal_Bool
MayBeLabel
(
sal_Bool
=
sal_False
);
sal_Bool
MayBeLabel
(
sal_Bool
=
sal_False
);
void
Hilite
(
SbTextPortions
&
);
void
Error
(
SbError
c
)
{
GenError
(
c
);
}
void
Error
(
SbError
c
)
{
GenError
(
c
);
}
void
Error
(
SbError
,
SbiToken
);
void
Error
(
SbError
,
SbiToken
);
void
Error
(
SbError
,
const
char
*
);
void
Error
(
SbError
,
const
char
*
);
...
...
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