geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

geany_php.c File Reference
#include "general.h"
#include "parse.h"
#include "read.h"
#include "vstring.h"
#include "keyword.h"
#include "entry.h"
#include "routines.h"
#include "debug.h"
Include dependency graph for geany_php.c:

Go to the source code of this file.

Classes

struct  tokenInfo
 

Macros

#define SCOPE_SEPARATOR   "::"
 

Typedefs

typedef int keywordId
 
typedef enum eTokenType tokenType
 

Enumerations

enum  {
  KEYWORD_abstract , KEYWORD_and , KEYWORD_as , KEYWORD_break ,
  KEYWORD_callable , KEYWORD_case , KEYWORD_catch , KEYWORD_class ,
  KEYWORD_clone , KEYWORD_const , KEYWORD_continue , KEYWORD_declare ,
  KEYWORD_define , KEYWORD_default , KEYWORD_do , KEYWORD_echo ,
  KEYWORD_else , KEYWORD_elif , KEYWORD_enddeclare , KEYWORD_endfor ,
  KEYWORD_endforeach , KEYWORD_endif , KEYWORD_endswitch , KEYWORD_endwhile ,
  KEYWORD_extends , KEYWORD_final , KEYWORD_finally , KEYWORD_for ,
  KEYWORD_foreach , KEYWORD_function , KEYWORD_global , KEYWORD_goto ,
  KEYWORD_if , KEYWORD_implements , KEYWORD_include , KEYWORD_include_once ,
  KEYWORD_instanceof , KEYWORD_insteadof , KEYWORD_interface , KEYWORD_namespace ,
  KEYWORD_new , KEYWORD_or , KEYWORD_print , KEYWORD_private ,
  KEYWORD_protected , KEYWORD_public , KEYWORD_require , KEYWORD_require_once ,
  KEYWORD_return , KEYWORD_static , KEYWORD_switch , KEYWORD_throw ,
  KEYWORD_trait , KEYWORD_try , KEYWORD_use , KEYWORD_var ,
  KEYWORD_while , KEYWORD_xor , KEYWORD_yield
}
 
enum  accessType {
  ACCESS_UNDEFINED , ACCESS_PRIVATE , ACCESS_PROTECTED , ACCESS_PUBLIC ,
  COUNT_ACCESS
}
 
enum  implType { IMPL_UNDEFINED , IMPL_ABSTRACT , COUNT_IMPL }
 
enum  phpKind {
  K_CLASS , K_DEFINE , K_FUNCTION , K_INTERFACE ,
  K_LOCAL_VARIABLE , K_NAMESPACE , K_TRAIT , K_VARIABLE ,
  COUNT_KIND
}
 
enum  eTokenType {
  TOKEN_OPEN_CURLY = '{' , TOKEN_UNDEFINED = 256 , TOKEN_KEYWORD , TOKEN_IDENTIFIER ,
  TOKEN_NONE , TOKEN_ARGS , TOKEN_BRACE_CLOSE , TOKEN_BRACE_OPEN ,
  TOKEN_COMMA , TOKEN_DOUBLE_COLON , TOKEN_KEYWORD , TOKEN_NAME ,
  TOKEN_PACKAGE , TOKEN_PAREN_NAME , TOKEN_SEMICOLON , TOKEN_SPEC ,
  TOKEN_STAR , TOKEN_ARRAY , TOKEN_COUNT , TOKEN_UNDEFINED ,
  TOKEN_EOF , TOKEN_CHARACTER , TOKEN_CLOSE_PAREN , TOKEN_SEMICOLON ,
  TOKEN_COLON , TOKEN_COMMA , TOKEN_KEYWORD , TOKEN_OPEN_PAREN ,
  TOKEN_IDENTIFIER , TOKEN_STRING , TOKEN_PERIOD , TOKEN_OPEN_CURLY ,
  TOKEN_CLOSE_CURLY , TOKEN_EQUAL_SIGN , TOKEN_EXCLAMATION , TOKEN_FORWARD_SLASH ,
  TOKEN_OPEN_SQUARE , TOKEN_CLOSE_SQUARE , TOKEN_OPEN_MXML , TOKEN_CLOSE_MXML ,
  TOKEN_CLOSE_SGML , TOKEN_LESS_THAN , TOKEN_GREATER_THAN , TOKEN_QUESTION_MARK ,
  TOKEN_OPEN_NAMESPACE , TOKEN_POSTFIX_OPERATOR , TOKEN_STAR , TOKEN_BINARY_OPERATOR ,
  TOKEN_UNDEFINED , TOKEN_COMMA , TOKEN_DOUBLE_COLON , TOKEN_IDENTIFIER ,
  TOKEN_KEYWORD , TOKEN_LABEL , TOKEN_NUMERIC , TOKEN_OPERATOR ,
  TOKEN_PAREN_CLOSE , TOKEN_PAREN_OPEN , TOKEN_SQUARE_CLOSE , TOKEN_SQUARE_OPEN ,
  TOKEN_PERCENT , TOKEN_STATEMENT_END , TOKEN_STRING , TOKEN_NONE = -1 ,
  TOKEN_OTHER , TOKEN_KEYWORD , TOKEN_IDENTIFIER , TOKEN_STRING ,
  TOKEN_OPEN_PAREN , TOKEN_CLOSE_PAREN , TOKEN_OPEN_CURLY , TOKEN_CLOSE_CURLY ,
  TOKEN_OPEN_SQUARE , TOKEN_CLOSE_SQUARE , TOKEN_SEMICOLON , TOKEN_STAR ,
  TOKEN_LEFT_ARROW , TOKEN_DOT , TOKEN_COMMA , TOKEN_EOF ,
  TOKEN_UNDEFINED , TOKEN_EOF , TOKEN_CHARACTER , TOKEN_CLOSE_PAREN ,
  TOKEN_SEMICOLON , TOKEN_COLON , TOKEN_COMMA , TOKEN_KEYWORD ,
  TOKEN_OPEN_PAREN , TOKEN_IDENTIFIER , TOKEN_STRING , TOKEN_TEMPLATE_STRING ,
  TOKEN_PERIOD , TOKEN_OPEN_CURLY , TOKEN_CLOSE_CURLY , TOKEN_EQUAL_SIGN ,
  TOKEN_OPEN_SQUARE , TOKEN_CLOSE_SQUARE , TOKEN_REGEXP , TOKEN_POSTFIX_OPERATOR ,
  TOKEN_STAR , TOKEN_BINARY_OPERATOR , TOKEN_UNDEFINED , TOKEN_EOF ,
  TOKEN_CHARACTER , TOKEN_CLOSE_PAREN , TOKEN_SEMICOLON , TOKEN_COLON ,
  TOKEN_COMMA , TOKEN_KEYWORD , TOKEN_OPEN_PAREN , TOKEN_OPERATOR ,
  TOKEN_IDENTIFIER , TOKEN_STRING , TOKEN_PERIOD , TOKEN_OPEN_CURLY ,
  TOKEN_CLOSE_CURLY , TOKEN_EQUAL_SIGN , TOKEN_OPEN_SQUARE , TOKEN_CLOSE_SQUARE ,
  TOKEN_VARIABLE , TOKEN_AMPERSAND , TOKEN_UNDEFINED , TOKEN_EOF ,
  TOKEN_CLOSE_PAREN , TOKEN_SEMICOLON , TOKEN_COLON , TOKEN_COMMA ,
  TOKEN_KEYWORD , TOKEN_OPEN_PAREN , TOKEN_OPERATOR , TOKEN_IDENTIFIER ,
  TOKEN_STRING , TOKEN_PERIOD , TOKEN_OPEN_CURLY , TOKEN_CLOSE_CURLY ,
  TOKEN_EQUAL_SIGN , TOKEN_OPEN_SQUARE , TOKEN_CLOSE_SQUARE , TOKEN_VARIABLE ,
  TOKEN_UNDEFINED , TOKEN_BLOCK_LABEL_BEGIN , TOKEN_BLOCK_LABEL_END , TOKEN_CHARACTER ,
  TOKEN_CLOSE_PAREN , TOKEN_COLON , TOKEN_SEMICOLON , TOKEN_COMMA ,
  TOKEN_IDENTIFIER , TOKEN_KEYWORD , TOKEN_OPEN_PAREN , TOKEN_OPERATOR ,
  TOKEN_OTHER , TOKEN_STRING , TOKEN_PERIOD , TOKEN_OPEN_CURLY ,
  TOKEN_CLOSE_CURLY , TOKEN_OPEN_SQUARE , TOKEN_CLOSE_SQUARE , TOKEN_TILDE ,
  TOKEN_FORWARD_SLASH , TOKEN_EQUAL
}
 

Functions

static const char * accessToString (const accessType access)
 
static const char * implToString (const implType impl)
 
static void initPhpEntry (tagEntryInfo *const e, const tokenInfo *const token, const phpKind kind, const accessType access)
 
static void makeSimplePhpTag (const tokenInfo *const token, const phpKind kind, const accessType access)
 
static void makeNamespacePhpTag (const tokenInfo *const token, const vString *const name)
 
static void makeClassOrIfaceTag (const phpKind kind, const tokenInfo *const token, vString *const inheritance, const implType impl)
 
static void makeFunctionTag (const tokenInfo *const token, const vString *const arglist, const accessType access, const implType impl)
 
static tokenInfonewToken (void)
 
static void deleteToken (tokenInfo *const token)
 
static void copyToken (tokenInfo *const dest, const tokenInfo *const src, bool scope)
 
static void addToScope (tokenInfo *const token, const vString *const extra)
 
static bool isIdentChar (const int c)
 
static void parseString (vString *const string, const int delimiter)
 
static void parseHeredoc (vString *const string)
 
static void parseIdentifier (vString *const string, const int firstChar)
 
static keywordId analyzeToken (vString *const name, langType language)
 
static bool isSpace (int c)
 
static int skipWhitespaces (int c)
 
static bool isOpenScriptLanguagePhp (int c)
 
static int findPhpStart (void)
 
static int skipSingleComment (void)
 
static void readToken (tokenInfo *const token)
 
static void enterScope (tokenInfo *const parentToken, const vString *const extraScope, const int parentKind)
 
static bool parseClassOrIface (tokenInfo *const token, const phpKind kind)
 
static bool parseTrait (tokenInfo *const token)
 
static bool parseFunction (tokenInfo *const token, const tokenInfo *name)
 
static bool parseConstant (tokenInfo *const token)
 
static bool parseDefine (tokenInfo *const token)
 
static bool parseVariable (tokenInfo *const token)
 
static bool parseNamespace (tokenInfo *const token)
 
static void findTags (void)
 
static void findPhpTags (void)
 
static void findZephirTags (void)
 
static void initializePhpParser (const langType language)
 
static void initializeZephirParser (const langType language)
 
parserDefinitionPhpParser (void)
 
parserDefinitionZephirParser (void)
 

Variables

static kindDefinition PhpKinds [COUNT_KIND]
 
static const keywordTable PhpKeywordTable []
 
static langType Lang_php
 
static langType Lang_zephir
 
static bool InPhp = false
 
struct {
   accessType   access
 
   implType   impl
 
CurrentStatement
 
static vStringCurrentNamespace
 

Macro Definition Documentation

◆ SCOPE_SEPARATOR

#define SCOPE_SEPARATOR   "::"

Definition at line 24 of file geany_php.c.

Typedef Documentation

◆ keywordId

typedef int keywordId

Definition at line 88 of file geany_php.c.

◆ tokenType

typedef enum eTokenType tokenType

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
KEYWORD_abstract 
KEYWORD_and 
KEYWORD_as 
KEYWORD_break 
KEYWORD_callable 
KEYWORD_case 
KEYWORD_catch 
KEYWORD_class 
KEYWORD_clone 
KEYWORD_const 
KEYWORD_continue 
KEYWORD_declare 
KEYWORD_define 
KEYWORD_default 
KEYWORD_do 
KEYWORD_echo 
KEYWORD_else 
KEYWORD_elif 
KEYWORD_enddeclare 
KEYWORD_endfor 
KEYWORD_endforeach 
KEYWORD_endif 
KEYWORD_endswitch 
KEYWORD_endwhile 
KEYWORD_extends 
KEYWORD_final 
KEYWORD_finally 
KEYWORD_for 
KEYWORD_foreach 
KEYWORD_function 
KEYWORD_global 
KEYWORD_goto 
KEYWORD_if 
KEYWORD_implements 
KEYWORD_include 
KEYWORD_include_once 
KEYWORD_instanceof 
KEYWORD_insteadof 
KEYWORD_interface 
KEYWORD_namespace 
KEYWORD_new 
KEYWORD_or 
KEYWORD_print 
KEYWORD_private 
KEYWORD_protected 
KEYWORD_public 
KEYWORD_require 
KEYWORD_require_once 
KEYWORD_return 
KEYWORD_static 
KEYWORD_switch 
KEYWORD_throw 
KEYWORD_trait 
KEYWORD_try 
KEYWORD_use 
KEYWORD_var 
KEYWORD_while 
KEYWORD_xor 
KEYWORD_yield 

Definition at line 27 of file geany_php.c.

◆ accessType

enum accessType
Enumerator
ACCESS_UNDEFINED 
ACCESS_PRIVATE 
ACCESS_PROTECTED 
ACCESS_PUBLIC 
COUNT_ACCESS 

Definition at line 90 of file geany_php.c.

◆ eTokenType

enum eTokenType
Enumerator
TOKEN_OPEN_CURLY 
TOKEN_UNDEFINED 
TOKEN_KEYWORD 
TOKEN_IDENTIFIER 
TOKEN_NONE 
TOKEN_ARGS 
TOKEN_BRACE_CLOSE 
TOKEN_BRACE_OPEN 
TOKEN_COMMA 
TOKEN_DOUBLE_COLON 
TOKEN_KEYWORD 
TOKEN_NAME 
TOKEN_PACKAGE 
TOKEN_PAREN_NAME 
TOKEN_SEMICOLON 
TOKEN_SPEC 
TOKEN_STAR 
TOKEN_ARRAY 
TOKEN_COUNT 
TOKEN_UNDEFINED 
TOKEN_EOF 
TOKEN_CHARACTER 
TOKEN_CLOSE_PAREN 
TOKEN_SEMICOLON 
TOKEN_COLON 
TOKEN_COMMA 
TOKEN_KEYWORD 
TOKEN_OPEN_PAREN 
TOKEN_IDENTIFIER 
TOKEN_STRING 
TOKEN_PERIOD 
TOKEN_OPEN_CURLY 
TOKEN_CLOSE_CURLY 
TOKEN_EQUAL_SIGN 
TOKEN_EXCLAMATION 
TOKEN_FORWARD_SLASH 
TOKEN_OPEN_SQUARE 
TOKEN_CLOSE_SQUARE 
TOKEN_OPEN_MXML 
TOKEN_CLOSE_MXML 
TOKEN_CLOSE_SGML 
TOKEN_LESS_THAN 
TOKEN_GREATER_THAN 
TOKEN_QUESTION_MARK 
TOKEN_OPEN_NAMESPACE 
TOKEN_POSTFIX_OPERATOR 
TOKEN_STAR 
TOKEN_BINARY_OPERATOR 
TOKEN_UNDEFINED 
TOKEN_COMMA 
TOKEN_DOUBLE_COLON 
TOKEN_IDENTIFIER 
TOKEN_KEYWORD 
TOKEN_LABEL 
TOKEN_NUMERIC 
TOKEN_OPERATOR 
TOKEN_PAREN_CLOSE 
TOKEN_PAREN_OPEN 
TOKEN_SQUARE_CLOSE 
TOKEN_SQUARE_OPEN 
TOKEN_PERCENT 
TOKEN_STATEMENT_END 
TOKEN_STRING 
TOKEN_NONE 
TOKEN_OTHER 
TOKEN_KEYWORD 
TOKEN_IDENTIFIER 
TOKEN_STRING 
TOKEN_OPEN_PAREN 
TOKEN_CLOSE_PAREN 
TOKEN_OPEN_CURLY 
TOKEN_CLOSE_CURLY 
TOKEN_OPEN_SQUARE 
TOKEN_CLOSE_SQUARE 
TOKEN_SEMICOLON 
TOKEN_STAR 
TOKEN_LEFT_ARROW 
TOKEN_DOT 
TOKEN_COMMA 
TOKEN_EOF 
TOKEN_UNDEFINED 
TOKEN_EOF 
TOKEN_CHARACTER 
TOKEN_CLOSE_PAREN 
TOKEN_SEMICOLON 
TOKEN_COLON 
TOKEN_COMMA 
TOKEN_KEYWORD 
TOKEN_OPEN_PAREN 
TOKEN_IDENTIFIER 
TOKEN_STRING 
TOKEN_TEMPLATE_STRING 
TOKEN_PERIOD 
TOKEN_OPEN_CURLY 
TOKEN_CLOSE_CURLY 
TOKEN_EQUAL_SIGN 
TOKEN_OPEN_SQUARE 
TOKEN_CLOSE_SQUARE 
TOKEN_REGEXP 
TOKEN_POSTFIX_OPERATOR 
TOKEN_STAR 
TOKEN_BINARY_OPERATOR 
TOKEN_UNDEFINED 
TOKEN_EOF 
TOKEN_CHARACTER 
TOKEN_CLOSE_PAREN 
TOKEN_SEMICOLON 
TOKEN_COLON 
TOKEN_COMMA 
TOKEN_KEYWORD 
TOKEN_OPEN_PAREN 
TOKEN_OPERATOR 
TOKEN_IDENTIFIER 
TOKEN_STRING 
TOKEN_PERIOD 
TOKEN_OPEN_CURLY 
TOKEN_CLOSE_CURLY 
TOKEN_EQUAL_SIGN 
TOKEN_OPEN_SQUARE 
TOKEN_CLOSE_SQUARE 
TOKEN_VARIABLE 
TOKEN_AMPERSAND 
TOKEN_UNDEFINED 
TOKEN_EOF 
TOKEN_CLOSE_PAREN 
TOKEN_SEMICOLON 
TOKEN_COLON 
TOKEN_COMMA 
TOKEN_KEYWORD 
TOKEN_OPEN_PAREN 
TOKEN_OPERATOR 
TOKEN_IDENTIFIER 
TOKEN_STRING 
TOKEN_PERIOD 
TOKEN_OPEN_CURLY 
TOKEN_CLOSE_CURLY 
TOKEN_EQUAL_SIGN 
TOKEN_OPEN_SQUARE 
TOKEN_CLOSE_SQUARE 
TOKEN_VARIABLE 
TOKEN_UNDEFINED 
TOKEN_BLOCK_LABEL_BEGIN 
TOKEN_BLOCK_LABEL_END 
TOKEN_CHARACTER 
TOKEN_CLOSE_PAREN 
TOKEN_COLON 
TOKEN_SEMICOLON 
TOKEN_COMMA 
TOKEN_IDENTIFIER 
TOKEN_KEYWORD 
TOKEN_OPEN_PAREN 
TOKEN_OPERATOR 
TOKEN_OTHER 
TOKEN_STRING 
TOKEN_PERIOD 
TOKEN_OPEN_CURLY 
TOKEN_CLOSE_CURLY 
TOKEN_OPEN_SQUARE 
TOKEN_CLOSE_SQUARE 
TOKEN_TILDE 
TOKEN_FORWARD_SLASH 
TOKEN_EQUAL 

Definition at line 192 of file geany_php.c.

◆ implType

enum implType
Enumerator
IMPL_UNDEFINED 
IMPL_ABSTRACT 
COUNT_IMPL 

Definition at line 98 of file geany_php.c.

◆ phpKind

enum phpKind
Enumerator
K_CLASS 
K_DEFINE 
K_FUNCTION 
K_INTERFACE 
K_LOCAL_VARIABLE 
K_NAMESPACE 
K_TRAIT 
K_VARIABLE 
COUNT_KIND 

Definition at line 104 of file geany_php.c.

Function Documentation

◆ accessToString()

static const char * accessToString ( const accessType  access)
static

Definition at line 240 of file geany_php.c.

References access, Assert, and COUNT_ACCESS.

Referenced by initPhpEntry().

◆ addToScope()

static void addToScope ( tokenInfo *const  token,
const vString *const  extra 
)
static

Definition at line 472 of file geany_php.c.

References tokenInfo::scope, SCOPE_SEPARATOR, vStringCatS(), vStringLength, and vStringValue.

Referenced by enterScope().

◆ analyzeToken()

static keywordId analyzeToken ( vString *const  name,
langType  language 
)
static

Definition at line 631 of file geany_php.c.

References lookupKeyword(), name, vStringCopyToLower(), vStringDelete(), vStringNew(), and vStringValue.

Referenced by readToken().

◆ copyToken()

◆ deleteToken()

static void deleteToken ( tokenInfo *const  token)
static

◆ enterScope()

◆ findPhpStart()

static int findPhpStart ( void  )
static

Definition at line 699 of file geany_php.c.

References getcFromInputFile(), isOpenScriptLanguagePhp(), and ungetcToInputFile().

Referenced by readToken().

◆ findPhpTags()

static void findPhpTags ( void  )
static

Definition at line 1430 of file geany_php.c.

References findTags(), and InPhp.

Referenced by PhpParser().

◆ findTags()

static void findTags ( void  )
static

◆ findZephirTags()

static void findZephirTags ( void  )
static

Definition at line 1436 of file geany_php.c.

References findTags(), and InPhp.

Referenced by ZephirParser().

◆ implToString()

static const char * implToString ( const implType  impl)
static

Definition at line 254 of file geany_php.c.

References Assert, COUNT_IMPL, and impl.

Referenced by makeClassOrIfaceTag(), and makeFunctionTag().

◆ initializePhpParser()

static void initializePhpParser ( const langType  language)
static

Definition at line 1442 of file geany_php.c.

References Lang_php.

Referenced by PhpParser().

◆ initializeZephirParser()

static void initializeZephirParser ( const langType  language)
static

Definition at line 1447 of file geany_php.c.

References Lang_zephir.

Referenced by ZephirParser().

◆ initPhpEntry()

◆ isIdentChar()

static bool isIdentChar ( const int  c)
static

Definition at line 479 of file geany_php.c.

Referenced by parseHeredoc(), parseIdentifier(), and readToken().

◆ isOpenScriptLanguagePhp()

static bool isOpenScriptLanguagePhp ( int  c)
static

Definition at line 658 of file geany_php.c.

References getcFromInputFile(), isSpace(), and skipWhitespaces().

Referenced by findPhpStart().

◆ isSpace()

static bool isSpace ( int  c)
static

Definition at line 641 of file geany_php.c.

Referenced by isOpenScriptLanguagePhp(), and skipWhitespaces().

◆ makeClassOrIfaceTag()

static void makeClassOrIfaceTag ( const phpKind  kind,
const tokenInfo *const  token,
vString *const  inheritance,
const implType  impl 
)
static

◆ makeFunctionTag()

static void makeFunctionTag ( const tokenInfo *const  token,
const vString *const  arglist,
const accessType  access,
const implType  impl 
)
static

◆ makeNamespacePhpTag()

static void makeNamespacePhpTag ( const tokenInfo *const  token,
const vString *const  name 
)
static

◆ makeSimplePhpTag()

static void makeSimplePhpTag ( const tokenInfo *const  token,
const phpKind  kind,
const accessType  access 
)
static

Definition at line 306 of file geany_php.c.

References access, initPhpEntry(), makeTagEntry(), and PhpKinds.

Referenced by parseConstant(), parseDefine(), parseTrait(), and parseVariable().

◆ newToken()

◆ parseClassOrIface()

◆ parseConstant()

static bool parseConstant ( tokenInfo *const  token)
static

◆ parseDefine()

static bool parseDefine ( tokenInfo *const  token)
static

◆ parseFunction()

◆ parseHeredoc()

static void parseHeredoc ( vString *const  string)
static

◆ parseIdentifier()

static void parseIdentifier ( vString *const  string,
const int  firstChar 
)
static

Definition at line 620 of file geany_php.c.

References getcFromInputFile(), isIdentChar(), ungetcToInputFile(), and vStringPut().

Referenced by readToken().

◆ parseNamespace()

◆ parseString()

static void parseString ( vString *const  string,
const int  delimiter 
)
static

Definition at line 484 of file geany_php.c.

References getcFromInputFile(), and vStringPut().

Referenced by readToken().

◆ parseTrait()

static bool parseTrait ( tokenInfo *const  token)
static

◆ parseVariable()

◆ PhpParser()

◆ readToken()

◆ skipSingleComment()

static int skipSingleComment ( void  )
static

Definition at line 732 of file geany_php.c.

References getcFromInputFile(), InPhp, and ungetcToInputFile().

Referenced by readToken().

◆ skipWhitespaces()

static int skipWhitespaces ( int  c)
static

Definition at line 647 of file geany_php.c.

References getcFromInputFile(), and isSpace().

Referenced by isOpenScriptLanguagePhp(), and readToken().

◆ ZephirParser()

Variable Documentation

◆ access

◆ CurrentNamespace

vString* CurrentNamespace
static

Definition at line 237 of file geany_php.c.

Referenced by findTags(), initPhpEntry(), and parseNamespace().

◆ 

struct { ... } CurrentStatement

◆ impl

◆ InPhp

bool InPhp = false
static

Definition at line 228 of file geany_php.c.

Referenced by findPhpTags(), findZephirTags(), readToken(), and skipSingleComment().

◆ Lang_php

langType Lang_php
static

Definition at line 225 of file geany_php.c.

Referenced by initializePhpParser().

◆ Lang_zephir

langType Lang_zephir
static

Definition at line 226 of file geany_php.c.

Referenced by initializeZephirParser(), and parseFunction().

◆ PhpKeywordTable

const keywordTable PhpKeywordTable[]
static

Definition at line 127 of file geany_php.c.

Referenced by PhpParser(), and ZephirParser().

◆ PhpKinds

kindDefinition PhpKinds[COUNT_KIND]
static
Initial value:
= {
{ true, 'c', "class", "classes" },
{ true, 'd', "define", "constant definitions" },
{ true, 'f', "function", "functions" },
{ true, 'i', "interface", "interfaces" },
{ false, 'l', "local", "local variables" },
{ true, 'n', "namespace", "namespaces" },
{ true, 't', "trait", "traits" },
{ true, 'v', "variable", "variables" }
}

Definition at line 116 of file geany_php.c.

Referenced by makeClassOrIfaceTag(), makeFunctionTag(), makeNamespacePhpTag(), makeSimplePhpTag(), parseVariable(), PhpParser(), and ZephirParser().