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
3ec664f5
Kaydet (Commit)
3ec664f5
authored
Haz 24, 2013
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge Fortran fixes from Alexander Eberspächer
Closes PR#145 and PR#146 by cherry-picking their commits.
üst
4a199f85
32074064
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
1 deletion
+41
-1
fortran.c
tagmanager/ctags/fortran.c
+8
-1
Makefile.am
tests/ctags/Makefile.am
+2
-0
forall_module.f90
tests/ctags/forall_module.f90
+26
-0
forall_module.f90.tags
tests/ctags/forall_module.f90.tags
+5
-0
No files found.
tagmanager/ctags/fortran.c
Dosyayı görüntüle @
3ec664f5
...
...
@@ -84,6 +84,7 @@ typedef enum eKeywordId {
KEYWORD_equivalence
,
KEYWORD_extends
,
KEYWORD_external
,
KEYWORD_forall
,
KEYWORD_format
,
KEYWORD_function
,
KEYWORD_if
,
...
...
@@ -107,6 +108,7 @@ typedef enum eKeywordId {
KEYWORD_pointer
,
KEYWORD_precision
,
KEYWORD_private
,
KEYWORD_procedure
,
KEYWORD_program
,
KEYWORD_public
,
KEYWORD_pure
,
...
...
@@ -249,6 +251,7 @@ static const keywordDesc FortranKeywordTable [] = {
{
"equivalence"
,
KEYWORD_equivalence
},
{
"extends"
,
KEYWORD_extends
},
{
"external"
,
KEYWORD_external
},
{
"forall"
,
KEYWORD_forall
},
{
"format"
,
KEYWORD_format
},
{
"function"
,
KEYWORD_function
},
{
"if"
,
KEYWORD_if
},
...
...
@@ -272,6 +275,7 @@ static const keywordDesc FortranKeywordTable [] = {
{
"pointer"
,
KEYWORD_pointer
},
{
"precision"
,
KEYWORD_precision
},
{
"private"
,
KEYWORD_private
},
{
"procedure"
,
KEYWORD_procedure
},
{
"program"
,
KEYWORD_program
},
{
"public"
,
KEYWORD_public
},
{
"pure"
,
KEYWORD_pure
},
...
...
@@ -1123,6 +1127,7 @@ static boolean isTypeSpec (tokenInfo *const token)
case
KEYWORD_logical
:
case
KEYWORD_record
:
case
KEYWORD_type
:
case
KEYWORD_procedure
:
result
=
TRUE
;
break
;
default:
...
...
@@ -1185,6 +1190,7 @@ static void parseTypeSpec (tokenInfo *const token)
case
KEYWORD_integer
:
case
KEYWORD_logical
:
case
KEYWORD_real
:
case
KEYWORD_procedure
:
readToken
(
token
);
if
(
isType
(
token
,
TOKEN_PAREN_OPEN
))
skipOverParens
(
token
);
/* skip kind-selector */
...
...
@@ -2045,7 +2051,8 @@ static boolean parseExecutionPart (tokenInfo *const token)
if
(
isSecondaryKeyword
(
token
,
KEYWORD_do
)
||
isSecondaryKeyword
(
token
,
KEYWORD_if
)
||
isSecondaryKeyword
(
token
,
KEYWORD_select
)
||
isSecondaryKeyword
(
token
,
KEYWORD_where
))
isSecondaryKeyword
(
token
,
KEYWORD_where
)
||
isSecondaryKeyword
(
token
,
KEYWORD_forall
))
{
skipToNextStatement
(
token
);
result
=
TRUE
;
...
...
tests/ctags/Makefile.am
Dosyayı görüntüle @
3ec664f5
...
...
@@ -120,6 +120,7 @@ test_sources = \
enum.java
\
events.cs
\
extern_variable.h
\
forall_module.f90
\
format.pl
\
func_typedef.h
\
general.cs
\
...
...
@@ -184,6 +185,7 @@ test_sources = \
objectivec_property.mm
\
objectivec_protocol.mm
\
Package.pm
\
procedure_pointer_module.f90
\
property.cs
\
prototype.h
\
pure_elem.f95
\
...
...
tests/ctags/forall_module.f90
0 → 100644
Dosyayı görüntüle @
3ec664f5
! a module that uses a forall block
module
with_forall
real
::
a
contains
subroutine
sub_with_forall
(
x
)
real
,
intent
(
inout
)
::
x
(:)
integer
::
i
forall
(
i
=
1
:
size
(
x
))
x
(
i
)
=
0.5
**
i
end
forall
end
subroutine
sub_with_forall
function
two
()
result
(
res
)
real
::
res
res
=
2.0
end
function
two
end
module
with_forall
tests/ctags/forall_module.f90.tags
0 → 100644
Dosyayı görüntüle @
3ec664f5
# format=tagmanager
a16384with_forall0
sub_with_forall64with_forall0
two16with_forall0
with_forall2560
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