Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
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ç
Batuhan Osman TASKAYA
geany
Commits
66888d58
Kaydet (Commit)
66888d58
authored
Eyl 24, 2012
tarafından
Oleg Eterevsky
Kaydeden (comit)
Colomban Wendling
Eyl 24, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
In ctags JavaScript parser fix recognizing functions inside methods
üst
effc8ef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
22 deletions
+24
-22
js.c
tagmanager/ctags/js.c
+24
-22
No files found.
tagmanager/ctags/js.c
Dosyayı görüntüle @
66888d58
...
...
@@ -854,17 +854,14 @@ static void parseFunction (tokenInfo *const token)
addToScope
(
name
,
token
->
scope
);
readToken
(
token
);
if
(
isType
(
token
,
TOKEN_PERIOD
))
while
(
isType
(
token
,
TOKEN_PERIOD
))
{
do
readToken
(
token
);
if
(
isKeyword
(
token
,
KEYWORD_NONE
)
)
{
addContext
(
name
,
token
);
readToken
(
token
);
if
(
isKeyword
(
token
,
KEYWORD_NONE
)
)
{
addContext
(
name
,
token
);
readToken
(
token
);
}
}
while
(
isType
(
token
,
TOKEN_PERIOD
));
}
}
if
(
isType
(
token
,
TOKEN_OPEN_PAREN
)
)
...
...
@@ -1064,6 +1061,7 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class)
{
tokenInfo
*
const
name
=
newToken
();
tokenInfo
*
const
secondary_name
=
newToken
();
tokenInfo
*
const
method_body_token
=
newToken
();
vString
*
saveScope
=
vStringNew
();
boolean
is_class
=
FALSE
;
boolean
is_terminated
=
TRUE
;
...
...
@@ -1166,7 +1164,7 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class)
* CASE 1
* Specified function name: "build"
* BindAgent.prototype.build = function( mode ) {
*
ignore everything within this function
*
maybe parse nested functions
* }
*
* CASE 2
...
...
@@ -1194,20 +1192,23 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class)
{
vStringCopy
(
saveScope
,
token
->
scope
);
addToScope
(
token
,
name
->
string
);
makeJsTag
(
token
,
JSTAG_METHOD
);
/*
* We can read until the end of the block / statement.
* We need to correctly parse any nested blocks, but
* we do NOT want to create any tags based on what is
* within the blocks.
*/
token
->
ignoreTag
=
TRUE
;
/*
* Find to the end of the statement
*/
findCmdTerm
(
token
);
token
->
ignoreTag
=
FALSE
;
readToken
(
method_body_token
);
while
(
!
(
isType
(
method_body_token
,
TOKEN_SEMICOLON
)
||
isType
(
method_body_token
,
TOKEN_CLOSE_CURLY
)
||
isType
(
method_body_token
,
TOKEN_OPEN_CURLY
))
)
{
if
(
isType
(
method_body_token
,
TOKEN_OPEN_PAREN
)
)
skipArgumentList
(
method_body_token
);
else
readToken
(
method_body_token
);
}
if
(
isType
(
method_body_token
,
TOKEN_OPEN_CURLY
))
parseBlock
(
method_body_token
,
token
);
is_terminated
=
TRUE
;
goto
cleanUp
;
}
...
...
@@ -1533,6 +1534,7 @@ cleanUp:
vStringCopy
(
token
->
scope
,
saveScope
);
deleteToken
(
name
);
deleteToken
(
secondary_name
);
deleteToken
(
method_body_token
);
vStringDelete
(
saveScope
);
return
is_terminated
;
...
...
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