Changeset 9287


Ignore:
Timestamp:
08/11/11 12:10:32 (14 years ago)
Author:
Mathieu Morlighem
Message:

Better synchronization script

Location:
issm/trunk/externalpackages/vim/addons/vim/syntax
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/vim/addons/vim/syntax/Synchronize.sh

    r9249 r9287  
    11#!/bin/bash
    2 #Synchronize EnumAsString.cpp and StringToEnum.cpp
     2
     3#Synchronize Enums
    34
    45#Get all lines of EnumDefinitions.h which hold Enum
    5 
    66cat c.vim | sed "/ISSM's Enums begin/,/vim: ts=8/d" > temp
    77echo "\"ISSM's Enums begin" >> temp
     
    1111
    1212mv temp c.vim
     13
     14#Synchronize objects
     15cat c.vim | sed "/ISSM's objects begin/,/vim: ts=8/d" > temp
     16echo "\"ISSM's objects begin" >> temp
     17cat ../../../../../src/c/objects/objects.h  | grep "\.h" | sed -e "s/\// /g" -e "s/\.h\"//" | awk '{print  $(NF)}' | awk '{ printf "syn keyword cType " $1 "\n"}' >> temp
     18echo "\"ISSM's objects end" >> temp
     19cat c.vim | sed "1,/ISSM's objects end/d" >> temp
     20
     21mv temp c.vim
  • issm/trunk/externalpackages/vim/addons/vim/syntax/c.vim

    r8311 r9287  
    405405"ISSM containers:
    406406syn keyword     cType           Constraints DataSet Elements Inputs Loads Materials Parameters Results Vertices
    407 "ISSM objects
    408 syn keyword     cType           Beam BeamRef BeamVertexElementResult BeamVertexInput BoolExternalResult BoolInput BoolParam ControlInput DofIndexing
    409 syn keyword     cType           DoubleElementResult DoubleExternalResult DoubleInput DoubleMatExternalResult DoubleMatParam DoubleParam DoubleVecExternalResult DoubleVecParam
    410 syn keyword     cType           Element ElementResult ElementMatrix ElementVector ExternalResult FemModel GaussSeg GaussTria GaussPenta Friction Hook Icefront Input
    411 syn keyword     cType           IntExternalResult IntInput IntParal IntVecParam IoModel Load Material Matice Matpar Node Nodes NodeSets Numericalflux Object
    412 syn keyword     cType           Param Patch Pengrid Penpair Penta PentaHook PentaRef PentaVertexElementResult PentaVertexInput PetscMatParam PetscVecExternalResult PetscVecParam
    413 syn keyword     cType           Rgb Riftfront Sing SingVertexElementResult SingVertexInput Spc StringArrayParam StringExternalResult StringParam
    414 syn keyword     cType           Tria TriaHook TriaRef TriaVertexElementResult TriaVertexInput Update Vertex
    415 "Bamg objects
    416 syn keyword     cType           BamgGeom BamgMesh BamgOpts CrackedEdge Curve Direction DoubleAndInt Edge GeomEdge GeomSubDomain GeomVertex Geometry IntEdge
    417 syn keyword     cType           ListofIntersectionTriangles EigenMetric BamgVertex Metric P2 P2xP2 QuadTree R2 SetOfEdges4 SubDomain Triangle AdjacentTriangle Mesh VertexOnEdge VertexOnGeom VertexOnVertex
    418407"Petsc
    419408syn keyword     cType           Vec Mat
    420409"other ISSM's syntax
    421 syn keyword     cType           Contour OptArgs OptPars mxArray ErrorException
     410syn keyword     cType           mxArray ErrorException
     411
     412"ISSM's objects begin
     413syn keyword cType objects.h
     414syn keyword cType Object
     415syn keyword cType Hook
     416syn keyword cType DofIndexing
     417syn keyword cType Vertex
     418syn keyword cType Node
     419syn keyword cType Segment
     420syn keyword cType IoModel
     421syn keyword cType Patch
     422syn keyword cType Update
     423syn keyword cType Constraint
     424syn keyword cType SpcStatic
     425syn keyword cType SpcTransient
     426syn keyword cType SpcDynamic
     427syn keyword cType GaussTria
     428syn keyword cType GaussPenta
     429syn keyword cType Friction
     430syn keyword cType Icefront
     431syn keyword cType Numericalflux
     432syn keyword cType Riftfront
     433syn keyword cType Penpair
     434syn keyword cType Pengrid
     435syn keyword cType Element
     436syn keyword cType Penta
     437syn keyword cType PentaHook
     438syn keyword cType PentaRef
     439syn keyword cType Tria
     440syn keyword cType TriaHook
     441syn keyword cType TriaRef
     442syn keyword cType KML_Attribute
     443syn keyword cType KML_ColorStyle
     444syn keyword cType KML_Container
     445syn keyword cType KML_Document
     446syn keyword cType KML_Feature
     447syn keyword cType KML_File
     448syn keyword cType KML_Folder
     449syn keyword cType KML_Geometry
     450syn keyword cType KML_GroundOverlay
     451syn keyword cType KML_Icon
     452syn keyword cType KML_LatLonBox
     453syn keyword cType KML_LinearRing
     454syn keyword cType KML_LineString
     455syn keyword cType KML_LineStyle
     456syn keyword cType KML_MultiGeometry
     457syn keyword cType KML_Object
     458syn keyword cType KML_Overlay
     459syn keyword cType KML_Placemark
     460syn keyword cType KML_Polygon
     461syn keyword cType KML_PolyStyle
     462syn keyword cType KML_Style
     463syn keyword cType KML_StyleSelector
     464syn keyword cType KML_SubStyle
     465syn keyword cType KMLFileReadUtils
     466syn keyword cType Option
     467syn keyword cType OptionDouble
     468syn keyword cType OptionLogical
     469syn keyword cType OptionChar
     470syn keyword cType OptionStruct
     471syn keyword cType OptionCell
     472syn keyword cType OptionUtilities
     473syn keyword cType Input
     474syn keyword cType BoolInput
     475syn keyword cType DoubleInput
     476syn keyword cType IntInput
     477syn keyword cType PentaVertexInput
     478syn keyword cType TriaVertexInput
     479syn keyword cType ControlInput
     480syn keyword cType DatasetInput
     481syn keyword cType TransientInput
     482syn keyword cType ElementResult
     483syn keyword cType DoubleElementResult
     484syn keyword cType TriaVertexElementResult
     485syn keyword cType PentaVertexElementResult
     486syn keyword cType BoolElementResult
     487syn keyword cType ExternalResult
     488syn keyword cType BoolExternalResult
     489syn keyword cType DoubleExternalResult
     490syn keyword cType DoubleVecExternalResult
     491syn keyword cType DoubleMatExternalResult
     492syn keyword cType IntExternalResult
     493syn keyword cType PetscVecExternalResult
     494syn keyword cType StringExternalResult
     495syn keyword cType Material
     496syn keyword cType Matice
     497syn keyword cType Matpar
     498syn keyword cType ElementMatrix
     499syn keyword cType ElementVector
     500syn keyword cType BoolParam
     501syn keyword cType DoubleMatParam
     502syn keyword cType DoubleMatArrayParam
     503syn keyword cType DoubleParam
     504syn keyword cType DoubleVecParam
     505syn keyword cType IntParam
     506syn keyword cType IntVecParam
     507syn keyword cType IntMatParam
     508syn keyword cType FileParam
     509syn keyword cType Param
     510syn keyword cType PetscMatParam
     511syn keyword cType PetscVecParam
     512syn keyword cType StringArrayParam
     513syn keyword cType StringParam
     514syn keyword cType Contour
     515syn keyword cType SolverEnum
     516syn keyword cType FemModel
     517syn keyword cType OptArgs
     518syn keyword cType OptPars
     519syn keyword cType BamgOpts
     520syn keyword cType BamgGeom
     521syn keyword cType BamgMesh
     522syn keyword cType Metric
     523syn keyword cType DoubleAndInt
     524syn keyword cType Direction
     525syn keyword cType BamgVertex
     526syn keyword cType AdjacentTriangle
     527syn keyword cType Edge
     528syn keyword cType GeomVertex
     529syn keyword cType GeomEdge
     530syn keyword cType Curve
     531syn keyword cType Triangle
     532syn keyword cType ListofIntersectionTriangles
     533syn keyword cType GeomSubDomain
     534syn keyword cType SubDomain
     535syn keyword cType VertexOnGeom
     536syn keyword cType VertexOnVertex
     537syn keyword cType VertexOnEdge
     538syn keyword cType CrackedEdge
     539syn keyword cType Mesh
     540syn keyword cType Geometry
     541syn keyword cType QuadTree
     542syn keyword cType SetOfE4
     543"ISSM's objects end
     544
    422545"ISSM's Enums begin
    423546syn keyword cConstant ConstraintsEnum
     
    449572syn keyword cConstant HydrologySolutionEnum
    450573syn keyword cConstant HydrologyAnalysisEnum
    451 syn keyword cConstant Transient2DSolutionEnum
    452 syn keyword cConstant Transient2DAnalysisEnum
    453 syn keyword cConstant Transient3DSolutionEnum
    454 syn keyword cConstant Transient3DAnalysisEnum
     574syn keyword cConstant TransientSolutionEnum
    455575syn keyword cConstant GroundingLineMigration2DSolutionEnum
    456576syn keyword cConstant SteadyAnalysisEnum
     
    466586syn keyword cConstant BalancethicknessSolutionEnum
    467587syn keyword cConstant BalancethicknessAnalysisEnum
    468 syn keyword cConstant BalancevelocitiesSolutionEnum
    469 syn keyword cConstant BalancevelocitiesAnalysisEnum
     588syn keyword cConstant Fake31Enum
     589syn keyword cConstant Fake32Enum
    470590syn keyword cConstant PrognosticSolutionEnum
    471591syn keyword cConstant PrognosticAnalysisEnum
     
    519639syn keyword cConstant PentaVertexInputEnum
    520640syn keyword cConstant TriaVertexInputEnum
     641syn keyword cConstant Fake0Enum
     642syn keyword cConstant Fake1Enum
    521643syn keyword cConstant ControlInputEnum
    522644syn keyword cConstant ParamEnum
     
    535657syn keyword cConstant ElementResultEnum
    536658syn keyword cConstant ExternalResultEnum
    537 syn keyword cConstant SpcEnum
     659syn keyword cConstant SpcStaticEnum
     660syn keyword cConstant SpcTransientEnum
    538661syn keyword cConstant GeographyEnum
    539662syn keyword cConstant IceSheetEnum
     
    546669syn keyword cConstant OpenEnum
    547670syn keyword cConstant ClosedEnum
    548 syn keyword cConstant AccumulationRateEnum
    549671syn keyword cConstant AdjointxEnum
    550672syn keyword cConstant AdjointyEnum
     
    559681syn keyword cConstant CmResponseEnum
    560682syn keyword cConstant CmResponsesEnum
    561 syn keyword cConstant CmNoiseDmpEnum
     683syn keyword cConstant Fake2Enum
    562684syn keyword cConstant ConstantEnum
    563685syn keyword cConstant NumControlsEnum
    564686syn keyword cConstant ControlTypeEnum
    565687syn keyword cConstant ConvergedEnum
    566 syn keyword cConstant DhDtEnum
     688syn keyword cConstant Fake3Enum
    567689syn keyword cConstant DragCoefficientEnum
    568690syn keyword cConstant DragPEnum
     
    576698syn keyword cConstant ElementOnSurfaceEnum
    577699syn keyword cConstant ElementOnWaterEnum
    578 syn keyword cConstant EpsVelEnum
     700syn keyword cConstant Fake4Enum
    579701syn keyword cConstant FillEnum
    580702syn keyword cConstant FractionIncrementEnum
    581703syn keyword cConstant FrictionEnum
    582 syn keyword cConstant GeothermalFluxEnum
     704syn keyword cConstant Fake5Enum
    583705syn keyword cConstant HydrostaticAdjustmentEnum
    584706syn keyword cConstant InternalEnum
     
    594716syn keyword cConstant SurfaceAverageVelMisfitEnum
    595717syn keyword cConstant MaxPenetrationEnum
    596 syn keyword cConstant MeanVelEnum
     718syn keyword cConstant Fake6Enum
    597719syn keyword cConstant MeltingOffsetEnum
    598720syn keyword cConstant GroundingLineMeltingRateEnum
    599 syn keyword cConstant MeltingRateEnum
     721syn keyword cConstant BasalMeltingRateEnum
    600722syn keyword cConstant MisfitEnum
    601723syn keyword cConstant NodeOnBedEnum
     
    617739syn keyword cConstant ShelfDampeningEnum
    618740syn keyword cConstant StabilizeConstraintsEnum
    619 syn keyword cConstant StokesReconditioningEnum
     741syn keyword cConstant Fake7Enum
     742syn keyword cConstant SurfaceAccumulationRateEnum
     743syn keyword cConstant SurfaceAblationRateEnum
    620744syn keyword cConstant SurfaceAreaEnum
    621745syn keyword cConstant SurfaceEnum
     746syn keyword cConstant SurfaceMassBalanceEnum
    622747syn keyword cConstant SurfaceSlopeXEnum
    623748syn keyword cConstant SurfaceSlopeYEnum
     
    672797syn keyword cConstant TimeEnum
    673798syn keyword cConstant OutputFrequencyEnum
    674 syn keyword cConstant WaterColumnEnum
     799syn keyword cConstant Fake8Enum
    675800syn keyword cConstant WaterColumnOldEnum
    676801syn keyword cConstant WaterColumnPicardEnum
     
    697822syn keyword cConstant RhoWaterEnum
    698823syn keyword cConstant GravityEnum
    699 syn keyword cConstant ThermalConductivityEnum
    700 syn keyword cConstant MeltingRateCorrectionEnum
    701 syn keyword cConstant MeltingRateCorrectionApplyEnum
     824syn keyword cConstant Fake9Enum
     825syn keyword cConstant BasalMeltingRateCorrectionEnum
     826syn keyword cConstant BasalMeltingRateCorrectionApplyEnum
    702827syn keyword cConstant MixedLayerCapacityEnum
    703828syn keyword cConstant ThermalExchangeVelocityEnum
     
    725850syn keyword cConstant EpsRelEnum
    726851syn keyword cConstant EpsResEnum
    727 syn keyword cConstant HeatCapacityEnum
    728 syn keyword cConstant IsHutterEnum
    729 syn keyword cConstant IsMacAyealPattynEnum
    730 syn keyword cConstant IsStokesEnum
    731 syn keyword cConstant KffEnum
    732 syn keyword cConstant LatentHeatEnum
     852syn keyword cConstant Fake10Enum
     853syn keyword cConstant Fake29Enum
     854syn keyword cConstant Fake11Enum
     855syn keyword cConstant Fake12Enum
     856syn keyword cConstant Fake13Enum
     857syn keyword cConstant Fake14Enum
    733858syn keyword cConstant LowmemEnum
    734 syn keyword cConstant MaxIterEnum
     859syn keyword cConstant Fake16Enum
    735860syn keyword cConstant MaxNonlinearIterationsEnum
    736 syn keyword cConstant MeltingPointEnum
     861syn keyword cConstant Fake17Enum
    737862syn keyword cConstant MinMechanicalConstraintsEnum
    738863syn keyword cConstant MinThermalConstraintsEnum
    739 syn keyword cConstant NStepsEnum
     864syn keyword cConstant Fake18Enum
    740865syn keyword cConstant NdtEnum
    741866syn keyword cConstant NumOutputEnum
     
    744869syn keyword cConstant NumberOfNodesEnum
    745870syn keyword cConstant NumberOfVerticesEnum
    746 syn keyword cConstant OptScalEnum
     871syn keyword cConstant Fake19Enum
    747872syn keyword cConstant OutputFilePointerEnum
    748 syn keyword cConstant OutputFileNameEnum
    749 syn keyword cConstant ParameterOutputEnum
     873syn keyword cConstant Fake20Enum
     874syn keyword cConstant Fake21Enum
    750875syn keyword cConstant PenaltyMeltingEnum
    751876syn keyword cConstant QmuAnalysisEnum
     
    763888syn keyword cConstant ScaledEnum
    764889syn keyword cConstant NodalEnum
    765 syn keyword cConstant ResponseDescriptorsEnum
     890syn keyword cConstant ResponsedescriptorsEnum
    766891syn keyword cConstant PetscRcEnum
    767892syn keyword cConstant SparsityEnum
    768 syn keyword cConstant TolXEnum
    769 syn keyword cConstant VariableDescriptorsEnum
     893syn keyword cConstant Fake22Enum
     894syn keyword cConstant VariabledescriptorsEnum
    770895syn keyword cConstant VerboseEnum
    771 syn keyword cConstant WaitOnLockEnum
     896syn keyword cConstant Fake23Enum
    772897syn keyword cConstant PetscOptionsStringsEnum
    773898syn keyword cConstant PetscOptionsAnalysesEnum
     
    792917syn keyword cConstant VyMeshEnum
    793918syn keyword cConstant VzMeshEnum
    794 syn keyword cConstant IsDiagnosticEnum
    795 syn keyword cConstant IsPrognosticEnum
    796 syn keyword cConstant IsThermalEnum
     919syn keyword cConstant Fake24Enum
     920syn keyword cConstant Fake25Enum
     921syn keyword cConstant Fake26Enum
     922syn keyword cConstant EnthalpySolutionEnum
     923syn keyword cConstant EnthalpyAnalysisEnum
     924syn keyword cConstant EnthalpyEnum
     925syn keyword cConstant EnthalpyPicardEnum
     926syn keyword cConstant Fake27Enum
     927syn keyword cConstant Fake28Enum
     928syn keyword cConstant ThicknessAbsGradientEnum
     929syn keyword cConstant VelAbsGradientEnum
     930syn keyword cConstant DatasetInputEnum
     931syn keyword cConstant NumResponsesEnum
     932syn keyword cConstant StepResponsesEnum
     933syn keyword cConstant IntMatParamEnum
     934syn keyword cConstant RheologyBbarAbsGradientEnum
     935syn keyword cConstant DragCoefficientAbsGradientEnum
     936syn keyword cConstant TransientInputEnum
     937syn keyword cConstant NumberOfElements2DEnum
     938syn keyword cConstant NumControlTypeEnum
     939syn keyword cConstant SpcvyEnum
     940syn keyword cConstant HydroQEnum
     941syn keyword cConstant VerboseBinaryEnum
     942syn keyword cConstant NodeOnWaterEnum
     943syn keyword cConstant YEnum
     944syn keyword cConstant GlMeltingRateEnum
     945syn keyword cConstant ElementsTypeEnum
     946syn keyword cConstant PenaltiesEnum
     947syn keyword cConstant PrognosticDGEnum
     948syn keyword cConstant PressureloadEnum
     949syn keyword cConstant HydroCREnum
     950syn keyword cConstant NameEnum
     951syn keyword cConstant VerticesTypeEnum
     952syn keyword cConstant HydroKnEnum
     953syn keyword cConstant GEnum
     954syn keyword cConstant InputfilenameEnum
     955syn keyword cConstant SpcvzEnum
     956syn keyword cConstant Fake33Enum
     957syn keyword cConstant NumberOfNodes2DEnum
     958syn keyword cConstant NodeOnStokesEnum
     959syn keyword cConstant NodeOnHutterEnum
     960syn keyword cConstant ZEnum
     961syn keyword cConstant GlMigrationEnum
     962syn keyword cConstant RiftinfoEnum
     963syn keyword cConstant ElementOnIceSheetEnum
     964syn keyword cConstant SpcthicknessEnum
     965syn keyword cConstant SpctemperatureEnum
     966syn keyword cConstant PenaltyLockEnum
     967syn keyword cConstant SpcvxEnum
     968syn keyword cConstant UpperelementsEnum
     969syn keyword cConstant HydroPEnum
     970syn keyword cConstant NodeOnPattynEnum
     971syn keyword cConstant EdgesEnum
     972syn keyword cConstant Elements2DEnum
     973syn keyword cConstant XEnum
     974syn keyword cConstant NumCmResponsesEnum
     975syn keyword cConstant NodeOnMacayealEnum
     976syn keyword cConstant ElementconnectivityEnum
     977syn keyword cConstant SpcwatercolumnEnum
     978syn keyword cConstant ArtificialDiffusivityEnum
     979syn keyword cConstant HydroNEnum
     980syn keyword cConstant BorderstokesEnum
     981syn keyword cConstant NumlayersEnum
     982syn keyword cConstant DiagnosticRefEnum
     983syn keyword cConstant IshutterEnum
     984syn keyword cConstant IsmacayealpattynEnum
     985syn keyword cConstant IsstokesEnum
     986syn keyword cConstant StokesreconditioningEnum
     987syn keyword cConstant LowerelementsEnum
     988syn keyword cConstant HeatcapacityEnum
     989syn keyword cConstant LatentheatEnum
     990syn keyword cConstant ThermalconductivityEnum
     991syn keyword cConstant MeltingpointEnum
     992syn keyword cConstant ReferencetemperatureEnum
     993syn keyword cConstant DhdtEnum
     994syn keyword cConstant GeothermalfluxEnum
     995syn keyword cConstant IsprognosticEnum
     996syn keyword cConstant IsdiagnosticEnum
     997syn keyword cConstant IsthermalEnum
     998syn keyword cConstant NstepsEnum
     999syn keyword cConstant MaxiterEnum
     1000syn keyword cConstant TolxEnum
     1001syn keyword cConstant OptscalEnum
     1002syn keyword cConstant EpsvelEnum
     1003syn keyword cConstant MeanvelEnum
     1004syn keyword cConstant Fake30Enum
     1005syn keyword cConstant OutputfilenameEnum
     1006syn keyword cConstant WaterfractionEnum
     1007syn keyword cConstant WatercolumnEnum
     1008syn keyword cConstant WaitonlockEnum
     1009syn keyword cConstant NumberOfVariablesEnum
     1010syn keyword cConstant NumberOfResponsesEnum
     1011syn keyword cConstant NpartEnum
     1012syn keyword cConstant QmuMassFluxNumProfilesEnum
     1013syn keyword cConstant PartEnum
     1014syn keyword cConstant MaxSteadystateIterationsEnum
     1015syn keyword cConstant RequestedOutputsEnum
     1016syn keyword cConstant NumRequestedOutputsEnum
     1017syn keyword cConstant BasalFrictionEnum
     1018syn keyword cConstant ViscousHeatingEnum
     1019syn keyword cConstant QmuTemperatureEnum
     1020syn keyword cConstant QmuRheologyBEnum
     1021syn keyword cConstant HydrologyWaterVxEnum
     1022syn keyword cConstant HydrologyWaterVyEnum
     1023syn keyword cConstant SpcDynamicEnum
    7971024"ISSM's Enums end
    7981025"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Note: See TracChangeset for help on using the changeset viewer.