Well, is this what you want? I added it to the file Built-in languages.pblangspec
. This is for Xcode 3.2. I know Xcode 4 is different but there may be some use for it.
// PDE
{
Identifier = "pde";
Name = "PDE";
BasedOn = c;
Description = "Maple";
// SourceScannerClassName = PBXCSourceScanner;
SupportsIndentation = YES;
Indentation = {
};
SyntaxColoring = {
Keywords = (
"HIGH",
"LOW",
"INPUT",
"OUTPUT",
"DEC",
"BIN",
"HEX",
"OCT",
"BYTE",
"PI",
"HALF_PI",
"TWO_PI",
"LSBFIRST",
"MSBFIRST",
"CHANGE",
"FALLING",
"RISING",
"EXT_INTERRUPT_INVALID_PIN",
"EXT_INTERRUPT_INVALID_FUNCTION",
"EXT_INTERRUPT_INVALID_MODE",
"DEFAULT",
"EXTERNAL",
"INTERAL",
"OUTPUT_OPEN_DRAIN",
"INPUT_FLOATING",
"INPUT_PULLUP",
"INPUT_PULLDOWN",
"INPUT_ANALOG",
"PWM",
"PWM_OPEN_DRAIN",
"BOARD_LED_PIN",
"BOARD_BUTTON_PIN",
"BOARD_USART1_TX_PIN",
"BOARD_USART1_RX_PIN",
"BOARD_USART2_TX_PIN",
"BOARD_USART2_RX_PIN",
"BOARD_USART3_TX_PIN",
"BOARD_USART3_RX_PIN",
"BOARD_UART4_TX_PIN",
"BOARD_UART4_RX_PIN",
"BOARD_UART5_TX_PIN",
"BOARD_UART5_RX_PIN",
"BOARD_NR_GPIO_PINS",
"BOARD_NR_PWM_PINS",
"BOARD_NR_ADC_PINS",
"BOARD_NR_USED_PINS",
"CYCLES_PER_MICROSECOND",
"SYSTICK_RELOAD_VAL",
"BIT0",
"BIT1",
"BIT2",
"BIT3",
"BIT4",
"BIT5",
"BIT6",
"BIT7",
"BIT8",
"BIT9",
"BIT10",
"BIT11",
"BIT12",
"BIT13",
"BIT14",
"BIT15",
"BIT16",
"BIT17",
"BIT18",
"BIT19",
"BIT20",
"BIT21",
"BIT22",
"BIT23",
"BIT24",
"BIT25",
"BIT26",
"BIT27",
"BIT28",
"BIT29",
"BIT30",
"BIT31",
"SPI_18MHZ",
"SPI_9MHZ",
"SPI_4_5MHZ",
"SPI_2_25MHZ",
"SPI_1_125MHZ",
"SPI_562_500KHZ",
"SPI_281_250KHZ",
"SPI_140_625HZ",
"MAX_SPI_FREQS",
"uint8",
"uint16",
"uint32",
"uint64",
"int8",
"int16",
"int32",
"int64",
"HardwareSerial",
"abs",
"acos",
"asin",
"atan",
"atan2",
"ceil",
"constrain",
"cos",
"degrees",
"exp",
"floor",
"log",
"map",
"max",
"min",
"radians",
"random",
"randomSeed",
"round",
"sin",
"sq",
"sqrt",
"tan",
"bitRead",
"bitWrite",
"bitSet",
"bitClear",
"bit",
"highByte",
"lowByte",
"noTone",
"pulseIn",
"tone",
"toggleLED",
"togglePin",
"analogReference",
"analogRead",
"analogWrite",
"attachInterrupt",
"detachInterrupt",
"delay",
"delayMicroseconds",
"digitalWrite",
"digitalRead",
"interrupts",
"millis",
"micros",
"noInterrupts",
"pinMode",
"shiftOut",
"boardUsesPin",
"Serial",
"Serial1",
"Serial2",
"Serial3",
"begin",
"end",
"read",
"print",
"println",
"available",
"flush",
"setup",
"loop",
"boardADCPins",
"boardPWMPins",
"boardUsedPins",
"sizeof",
"pwmWrite",
"SerialUSB",
"Timer1",
"Timer2",
"Timer3"
);
};
}
Some of these may not be keywords, but that's what I wanted.
And for completion to anyone wanting to know, edit Standard file types.pbfilespec
so that pde files open in xcode.
{
Identifier = sourcecode.c.c;
BasedOn = sourcecode.c;
Extensions = (c,pde); <--------- this one
AppliesToBuildRules = no;
},
Oh, and thanks Rei for the code, I haven't really used it yet, but your webpage pointed me in the direction of Energia so I can finally program the couple of MSP430's I've got lying around without having to boot into Window and learn a new processor.